Creates a new task from provided data
curl --request POST \
--url https://api.rootly.com/v1/incident_roles/{incident_role_id}/incident_role_tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "<string>",
"task": "<string>",
"description": "<string>",
"priority": "high"
}
}
}'
{
"data": {
"id": "9cc6d940-aa6a-4145-a599-8f54a079d7e5",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "09bc67a0-5ea1-4dc3-b3c0-0cace584ca79",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-08-15T07:13:48.626-07:00",
"updated_at": "2025-08-15T07:13:48.626-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
incident_role_task created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/incident_roles/{incident_role_id}/incident_role_tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "<string>",
"task": "<string>",
"description": "<string>",
"priority": "high"
}
}
}'
{
"data": {
"id": "9cc6d940-aa6a-4145-a599-8f54a079d7e5",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "09bc67a0-5ea1-4dc3-b3c0-0cace584ca79",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-08-15T07:13:48.626-07:00",
"updated_at": "2025-08-15T07:13:48.626-07:00"
}
}
}