Create a schedule
POST/v1/on-call/configurations/{configurationId}/schedulesrequires on_call:write
rotations replaces every rotation. A rotation keeps its id across updates while its name is unchanged, so overrides that cover it survive; an update that would drop a rotation an override still covers is refused. Overrides are managed separately and are untouched by schedule writes. Delete is refused while an escalation policy pages the schedule. Every change bumps the configuration revision, turns paging off until the next drill and activation, and cancels pending escalation, exactly as a dashboard edit does. Only live keys may write; test keys are refused because configuration is shared by live and test incidents.
Requestcurl -X POST https://api.transmit.dev/v1/on-call/configurations/{configurationId}/schedules \
-H "Authorization: Bearer tr_v2_…" \
-H "Content-Type: application/json" \
-d '{
"name": "…",
"timezone": "…",
"rotations": [
{}
]
}'Parameters
| Name | In | Notes |
|---|---|---|
configurationId required | path | The on-call configuration id. |
Body
| Field | Type | Notes |
|---|---|---|
name required | string | 1–120 characters |
timezone required | string | 1–100 characters |
enabled | boolean | defaults to true |
ownerTeamId | string or null | defaults to null |
rotations required | object[] | at most 100 |
Responses
| Status | Meaning |
|---|---|
201 | schedule |
401 | The API key is missing, malformed, expired or revoked |
403 | The API key lacks the on_call:write scope |
404 | Configuration or resource not found in this workspace |
409 | The change conflicts with existing definitions, or the resource is still referenced |
415 | Use application/json |
422 | Invalid definition; details.issues names the fields |
Every response body is described in the OpenAPI spec, which this page is generated from.