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": "2d316d13-6df6-47d7-b6fe-72ee3badcd82",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "144aa9aa-db13-4857-94d9-48e61f1e7aa2",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-07-17T11:04:25.235-07:00",
"updated_at": "2025-07-17T11:04:25.235-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": "2d316d13-6df6-47d7-b6fe-72ee3badcd82",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "144aa9aa-db13-4857-94d9-48e61f1e7aa2",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-07-17T11:04:25.235-07:00",
"updated_at": "2025-07-17T11:04:25.235-07:00"
}
}
}