cURL
curl --request POST \ --url http://localhost/api/incidents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "status": 0, "message": "<string>", "template": "<string>", "visible": false, "stickied": false, "notifications": false, "occurred_at": "<string>", "template_vars": [], "component_id": 123, "component_status": 1, "components": [ { "id": 123, "status": 1 } ] } '
{ "data": { "id": "<string>", "type": "incidents", "attributes": { "id": 123, "guid": "<string>", "name": "<string>", "message": "<string>", "component_id": 123, "visible": 0, "stickied": true, "notifications": 123, "status": { "human": "<string>", "value": "<string>" }, "occurred": { "human": "<string>", "string": "<string>" }, "created": { "human": "<string>", "string": "<string>" }, "updated": { "human": "<string>", "string": "<string>" } }, "relationships": { "components": { "data": [ { "type": "components", "id": "<string>" } ] }, "updates": { "data": [ { "type": "updates", "id": "<string>" } ] }, "user": { "data": { "type": "<string>", "id": "<string>" } } } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
CreateIncidentRequestData
255
0
1
2
3
4
5
6
Show child attributes
Incident