v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBIncidents
Create an incident todo
Create an incident todo.
post/api/v2/incidents/{incident_id}/relationships/todos
Path parameters
incident_idstring required
The UUID of the incident.
Request body
Example request
{
"data": {
"attributes": {
"assignees": [
"@test.user@test.com"
],
"completed": "2023-03-06T22:00:00.000000+00:00",
"content": "Restore lost data.",
"due_date": "2023-07-10T05:00:00.000000+00:00",
"incident_id": "00000000-aaaa-0000-0000-000000000000"
},
"type": "incident_todos"
}
}Response
CREATED
Example response
{
"data": {
"attributes": {
"assignees": [
"@test.user@test.com"
],
"completed": "2023-03-06T22:00:00.000000+00:00",
"content": "Restore lost data.",
"due_date": "2023-07-10T05:00:00.000000+00:00",
"incident_id": "00000000-aaaa-0000-0000-000000000000"
},
"id": "00000000-0000-0000-1234-000000000000",
"relationships": {
"created_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
},
"last_modified_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "incident_todos"
},
"included": [
{
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": []
},
"other_users": {
"data": []
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
]
}