DELETE
/
v1
/
incidents
/
{id}
/
unassign_role_from_user
curl --request DELETE \
  --url https://api.rootly.com/v1/incidents/{id}/unassign_role_from_user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "incidents",
    "attributes": {
      "user_id": "<string>",
      "incident_role_id": "<string>"
    }
  }
}'
{
  "data": {
    "id": "fa7789ff-9499-41cf-85db-a4ab1e3449a4",
    "type": "incidents",
    "attributes": {
      "parent_incident_id": null,
      "sequential_id": 1,
      "title": "Molestias ut omnis est.",
      "slug": "molestias-ut-omnis-est",
      "kind": "normal",
      "private": false,
      "summary": "Reiciendis consequatur non. Dignissimos et eos. Veniam rerum in.",
      "status": "started",
      "source": "web",
      "url": "http://localhost:3001/account/incidents/1-molestias-ut-omnis-est",
      "short_url": null,
      "user": {
        "data": {
          "id": "320",
          "type": "users",
          "attributes": {
            "name": "Lauren Auer",
            "email": "masako.orn@kuhic-hettinger.example",
            "phone": null,
            "phone_2": null,
            "full_name": "Lauren Auer",
            "full_name_with_team": "[Carter-Fadel] Lauren Auer",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-26T23:22:34.159-07:00",
            "created_at": "2025-03-26T23:22:33.666-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "a22fd39d-83b6-45cd-9505-e5c773af3ce7",
                  "type": "user_email_addresses"
                }
              ]
            },
            "phone_numbers": {
              "data": []
            },
            "devices": {
              "data": []
            }
          }
        }
      },
      "severity": {
        "data": {
          "id": "2d7cb4f8-ee1c-4a50-9cfc-971bf876ef2a",
          "type": "severities",
          "attributes": {
            "name": "guglo",
            "slug": "guglo",
            "description": "Dolorum autem dolores accusantium.",
            "severity": "medium",
            "color": "#E58A1F",
            "position": 1,
            "notify_emails": [],
            "slack_channels": [],
            "slack_aliases": [],
            "created_at": "2025-03-26T23:22:34.121-07:00",
            "updated_at": "2025-03-26T23:22:34.121-07:00"
          }
        }
      },
      "in_triage_by": null,
      "started_by": {
        "data": {
          "id": "320",
          "type": "users",
          "attributes": {
            "name": "Lauren Auer",
            "email": "masako.orn@kuhic-hettinger.example",
            "phone": null,
            "phone_2": null,
            "full_name": "Lauren Auer",
            "full_name_with_team": "[Carter-Fadel] Lauren Auer",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-26T23:22:34.159-07:00",
            "created_at": "2025-03-26T23:22:33.666-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "a22fd39d-83b6-45cd-9505-e5c773af3ce7",
                  "type": "user_email_addresses"
                }
              ]
            },
            "phone_numbers": {
              "data": []
            },
            "devices": {
              "data": []
            }
          }
        }
      },
      "mitigated_by": null,
      "resolved_by": null,
      "closed_by": null,
      "cancelled_by": null,
      "mitigation_message": null,
      "resolution_message": null,
      "cancellation_message": null,
      "public_title": null,
      "duplicate_incident_id": null,
      "retrospective_progress_status": "not_started",
      "zoom_meeting_id": null,
      "zoom_meeting_start_url": null,
      "zoom_meeting_join_url": null,
      "zoom_meeting_password": null,
      "zoom_meeting_pstn_password": null,
      "zoom_meeting_h323_password": null,
      "zoom_meeting_global_dial_in_numbers": [],
      "shortcut_story_id": null,
      "shortcut_story_url": null,
      "shortcut_task_id": null,
      "shortcut_task_url": null,
      "asana_task_id": null,
      "asana_task_url": null,
      "github_issue_id": null,
      "github_issue_url": null,
      "gitlab_issue_id": null,
      "gitlab_issue_url": null,
      "jira_issue_key": null,
      "jira_issue_id": null,
      "jira_issue_url": null,
      "google_meeting_id": null,
      "google_meeting_url": null,
      "trello_card_id": null,
      "trello_card_url": null,
      "linear_issue_id": null,
      "linear_issue_url": null,
      "zendesk_ticket_id": null,
      "zendesk_ticket_url": null,
      "motion_task_id": null,
      "motion_task_url": null,
      "clickup_task_id": null,
      "clickup_task_url": null,
      "slack_channel_name": null,
      "slack_channel_id": null,
      "slack_channel_url": null,
      "slack_channel_short_url": null,
      "slack_channel_deep_link": null,
      "slack_channel_archived": false,
      "slack_last_message_ts": null,
      "service_now_incident_id": null,
      "service_now_incident_key": null,
      "service_now_incident_url": null,
      "opsgenie_incident_id": null,
      "opsgenie_incident_url": null,
      "opsgenie_alert_id": null,
      "opsgenie_alert_url": null,
      "victor_ops_incident_id": null,
      "victor_ops_incident_url": null,
      "pagerduty_incident_id": null,
      "pagerduty_incident_number": null,
      "pagerduty_incident_url": null,
      "mattermost_channel_id": null,
      "mattermost_channel_name": null,
      "mattermost_channel_url": null,
      "confluence_page_id": null,
      "confluence_page_url": null,
      "quip_page_id": null,
      "quip_page_url": null,
      "airtable_base_key": null,
      "airtable_table_name": null,
      "airtable_record_id": null,
      "airtable_record_url": null,
      "google_drive_id": null,
      "google_drive_parent_id": null,
      "google_drive_url": null,
      "sharepoint_page_id": null,
      "sharepoint_page_url": null,
      "datadog_notebook_id": null,
      "datadog_notebook_url": null,
      "freshservice_ticket_id": null,
      "freshservice_ticket_url": null,
      "freshservice_task_id": null,
      "freshservice_task_url": null,
      "scheduled_for": null,
      "scheduled_until": null,
      "in_triage_at": null,
      "started_at": "2025-03-26T23:22:34.129-07:00",
      "detected_at": null,
      "acknowledged_at": null,
      "mitigated_at": null,
      "resolved_at": null,
      "closed_at": null,
      "cancelled_at": null,
      "created_at": "2025-03-26T23:22:34.129-07:00",
      "updated_at": "2025-03-26T23:22:57.339-07:00",
      "labels": {}
    },
    "relationships": {
      "causes": {
        "data": []
      },
      "subscribers": {
        "data": [
          {
            "id": "8b076160-b5e6-436f-9710-4b8d0512304e",
            "type": "incident_subscribers"
          }
        ]
      },
      "roles": {
        "data": []
      },
      "environments": {
        "data": []
      },
      "incident_types": {
        "data": []
      },
      "services": {
        "data": []
      },
      "functionalities": {
        "data": []
      },
      "groups": {
        "data": []
      },
      "events": {
        "data": [
          {
            "id": "7811a58a-a824-46e1-8faf-ec080576ff30",
            "type": "incident_events"
          },
          {
            "id": "721f930c-c056-4269-83fe-f0bee5e7d9be",
            "type": "incident_events"
          },
          {
            "id": "6fa4e95f-fb57-48de-9f8b-2a2911c556d7",
            "type": "incident_events"
          }
        ]
      },
      "action_items": {
        "data": []
      },
      "custom_field_selections": {
        "data": []
      },
      "feedbacks": {
        "data": []
      },
      "attachments": {
        "data": []
      },
      "slack_messages": {
        "data": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200
application/vnd.api+json
remove assigned user from incident
data
object
required