Creates a new incident role from provided data
curl --request POST \
--url https://api.rootly.com/v1/incident_roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_roles",
"attributes": {
"name": "<string>",
"summary": "<string>",
"description": "<string>",
"position": 123,
"optional": true,
"enabled": true,
"allow_multi_user_assignment": true
}
}
}'
{
"data": {
"id": "82a6af73-b15c-4a37-b88f-418f6c5f4b9d",
"type": "incident_roles",
"attributes": {
"slug": "my-incident-role",
"name": "My Incident Role",
"summary": "My Incident Role summary",
"description": "My Incident Role description",
"position": 1,
"optional": false,
"enabled": true,
"allow_multi_user_assignment": true,
"created_at": "2025-07-17T11:04:29.730-07:00",
"updated_at": "2025-07-17T11:04:29.730-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
incident_role created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/incident_roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_roles",
"attributes": {
"name": "<string>",
"summary": "<string>",
"description": "<string>",
"position": 123,
"optional": true,
"enabled": true,
"allow_multi_user_assignment": true
}
}
}'
{
"data": {
"id": "82a6af73-b15c-4a37-b88f-418f6c5f4b9d",
"type": "incident_roles",
"attributes": {
"slug": "my-incident-role",
"name": "My Incident Role",
"summary": "My Incident Role summary",
"description": "My Incident Role description",
"position": 1,
"optional": false,
"enabled": true,
"allow_multi_user_assignment": true,
"created_at": "2025-07-17T11:04:29.730-07:00",
"updated_at": "2025-07-17T11:04:29.730-07:00"
}
}
}