rajnandan1 / kener

Kener is a Modern Self hosted Status Page, batteries included
https://kener.ing/
MIT License
2.5k stars 104 forks source link

Creating an incident using API #66

Closed xinwang0916 closed 7 months ago

xinwang0916 commented 7 months ago

Hello, Describe the bug I am managing my incident in another system and I tried to create and synchronize the incident through API, but it failed

curl --request POST \
  --url http://<IP>:<PORT>/api/incident \
  --header 'Authorization: Bearer  <API_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
    "startDatetime": 1702405740,
    "endDatetime": 1702405920,
    "title": "Outage in Mumbai",
    "body": "Login cluster is down in mumbai region",
    "tags": ["test"],
    "impact": "DOWN",
    "isMaintenance": false,
    "isIdentified": true,
    "isResolved": false
}'
{"error":"github error"}%  

My understanding is that creating an incident through API or creating an incident through Github should be two different ways. If I am wrong, please let me know at any time. Thank you

xinwang0916 commented 7 months ago

Sorry to bother you, I didn't understand the product features clearly.