POST
/
v1
/
incident_roles
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": "2040ac3a-58dc-4223-9671-f7cfdc3bba2e",
    "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-03-28T23:02:28.606-07:00",
      "updated_at": "2025-03-28T23:02:28.606-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
incident_role created
data
object
required