Create
Create a new sync rule linking a schedule to a sync target.
Authorizations
API key from your incident.io dashboard (Settings → API keys)
Path Parameters
The schedule to create a sync rule for
"01FDAG4SAP5TYPT98WGR2N7W91"
Body
{
"annotations": { "incident.io/terraform/version": "3.0.0" },
"rotation_id": "01JXYZ000000000000000000RT",
"schedule_sync_target_id": "01JXYZ000000000000000000AB",
"sync_type": "on_call"
}Response
Created response.
A sync rule links a schedule to a sync target, telling us which of the schedule's members should flow into the target's Slack user group.
sync_type decides who is synced: on_call syncs only the people currently on call, while all_users syncs everyone on the schedule. By default every rotation on the schedule is included; set rotation_id to scope the rule to a single rotation. As the schedule's shifts change hands, we keep the target's Slack user group membership in step with the rule.