POST
/
v1
/
incidents
/
{id}
/
add_subscribers
curl --request POST \
  --url https://api.rootly.com/v1/incidents/{id}/add_subscribers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "incidents",
    "attributes": {
      "user_ids": [
        "<string>"
      ],
      "remove_users_with_no_private_incident_access": false
    }
  }
}'
{
  "data": {
    "id": "b8a31e0c-53f0-4c99-9b6e-c1859f7469e7",
    "type": "incidents",
    "attributes": {
      "parent_incident_id": null,
      "sequential_id": 1,
      "title": "Aut et sunt odio.",
      "slug": "aut-et-sunt-odio",
      "kind": "normal",
      "private": false,
      "summary": "Assumenda molestiae rerum. Fugiat qui dolorum. Omnis ad aut.",
      "status": "started",
      "source": "web",
      "url": "http://localhost:3001/account/incidents/1-aut-et-sunt-odio",
      "short_url": null,
      "user": {
        "data": {
          "id": "317",
          "type": "users",
          "attributes": {
            "name": "Sharen Muller",
            "email": "kimberely.jenkins@mante-willms.test",
            "phone": null,
            "phone_2": null,
            "full_name": "Sharen Muller",
            "full_name_with_team": "[Bergnaum-Gutmann] Sharen Muller",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-22T23:02:44.696-07:00",
            "created_at": "2025-03-22T23:02:43.875-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "3fea9d5a-a00d-466d-839b-ce24862aafa4",
                  "type": "user_email_addresses"
                }
              ]
            },
            "phone_numbers": {
              "data": []
            },
            "devices": {
              "data": []
            }
          }
        }
      },
      "severity": {
        "data": {
          "id": "67950a1e-86d0-46fa-8f60-51bf04621d90",
          "type": "severities",
          "attributes": {
            "name": "2yepe",
            "slug": "2yepe",
            "description": "Unde in iste quaerat.",
            "severity": "medium",
            "color": "#E58A1F",
            "position": 1,
            "notify_emails": [],
            "slack_channels": [],
            "slack_aliases": [],
            "created_at": "2025-03-22T23:02:44.630-07:00",
            "updated_at": "2025-03-22T23:02:44.630-07:00"
          }
        }
      },
      "in_triage_by": null,
      "started_by": {
        "data": {
          "id": "317",
          "type": "users",
          "attributes": {
            "name": "Sharen Muller",
            "email": "kimberely.jenkins@mante-willms.test",
            "phone": null,
            "phone_2": null,
            "full_name": "Sharen Muller",
            "full_name_with_team": "[Bergnaum-Gutmann] Sharen Muller",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-22T23:02:44.696-07:00",
            "created_at": "2025-03-22T23:02:43.875-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "3fea9d5a-a00d-466d-839b-ce24862aafa4",
                  "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-22T23:02:44.643-07:00",
      "detected_at": null,
      "acknowledged_at": null,
      "mitigated_at": null,
      "resolved_at": null,
      "closed_at": null,
      "cancelled_at": null,
      "created_at": "2025-03-22T23:02:44.643-07:00",
      "updated_at": "2025-03-22T23:02:44.643-07:00",
      "labels": {}
    },
    "relationships": {
      "causes": {
        "data": []
      },
      "subscribers": {
        "data": [
          {
            "id": "de604d68-0eb8-4ce7-a55d-d7a7b5713884",
            "type": "incident_subscribers"
          }
        ]
      },
      "roles": {
        "data": []
      },
      "environments": {
        "data": []
      },
      "incident_types": {
        "data": []
      },
      "services": {
        "data": []
      },
      "functionalities": {
        "data": []
      },
      "groups": {
        "data": []
      },
      "events": {
        "data": [
          {
            "id": "aa5ffbe0-a45c-4859-aa65-45dd10e3c62c",
            "type": "incident_events"
          },
          {
            "id": "77ad69b8-117e-4674-b823-d654de145aeb",
            "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
add subscribers to incident
data
object
required