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": "d4d17d93-73e8-456e-9d54-f6d6839bab19",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "9fdc481a-4b56-432f-bae8-1267e3672c53",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-09-04T12:40:27.850-07:00",
"updated_at": "2025-09-04T12:40:27.850-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": "d4d17d93-73e8-456e-9d54-f6d6839bab19",
"type": "incident_role_tasks",
"attributes": {
"incident_role_id": "9fdc481a-4b56-432f-bae8-1267e3672c53",
"task": "New task",
"description": "New task description",
"priority": "high",
"created_at": "2025-09-04T12:40:27.850-07:00",
"updated_at": "2025-09-04T12:40:27.850-07:00"
}
}
}