API Documentation
Components
Component Groups
Incident Updates
Incident Templates
Incidents
Create Incident
POST
/
incidents
Copy
Ask AI
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
}'
Copy
Ask AI
{
"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": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": 123,
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": true,
"meta": [
"<any>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"group": {
"data": {
"type": "componentGroups",
"id": "<string>"
}
},
"incidents": {
"data": [
{}
]
}
}
}
]
},
"updates": {
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": 123,
"updateable_id": 123,
"updateable_type": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
}
}
]
},
"user": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
CreateIncidentRequestData
The body is of type object
.
Response
200
application/json
Incident
The response is of type object
.
Copy
Ask AI
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
}'
Copy
Ask AI
{
"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": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": 123,
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": true,
"meta": [
"<any>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"group": {
"data": {
"type": "componentGroups",
"id": "<string>"
}
},
"incidents": {
"data": [
{}
]
}
}
}
]
},
"updates": {
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": 123,
"updateable_id": 123,
"updateable_type": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
}
}
]
},
"user": {
"data": {
"type": "<string>",
"id": "<string>"
}
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.