Skip to main content
POST
/
v2
/
schedule_sync_targets
Create
curl --request POST \
  --url https://api.incident.io/v2/schedule_sync_targets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schedule_sync_target": {
    "add_bot_to_group": true,
    "new_slack_user_group": {
      "description": "The team responsible for Project A",
      "handle": "project-team-a",
      "name": "Project Team A",
      "slack_team_id": "T01234567"
    },
    "slack_user_group_id": "S06MNNU5BMK"
  }
}
'
{
  "schedule_sync_target": {
    "add_bot_to_group": true,
    "created_at": "2021-08-17T13:28:57.801578Z",
    "id": "01JXYZ000000000000000000AB",
    "linked_schedules": [
      {
        "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
        "name": "Primary On-Call Schedule",
        "team_ids": [
          "01JPQA75EPNEES4479P16P4XAB"
        ]
      }
    ],
    "slack_team_id": "T02A1AZHG3J",
    "slack_user_group_id": "S06MNNU5BMK",
    "updated_at": "2021-08-17T13:28:57.801578Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.incident.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key from your incident.io dashboard (Settings → API keys)

Body

application/json
schedule_sync_target
object
required
Example:
{
"add_bot_to_group": true,
"new_slack_user_group": {
"description": "The team responsible for Project A",
"handle": "project-team-a",
"name": "Project Team A",
"slack_team_id": "T01234567"
},
"slack_user_group_id": "S06MNNU5BMK"
}

Response

201 - application/json

Created response.

schedule_sync_target
object
required