Update a shift — path-addressed shift
xmatters_update_a_shift_by_idUpdate an existing on-call shift by group and shift ID, specifying recurrence, members, times, and rotation. Requires explicit write confirmation to apply API changes.
Instructions
Update a shift — path-addressed shift. POST /api/xm/1/groups/{groupID}/shifts/{shiftID}. Additional path from the official cURL and Python POST examples. DEFINITION and JavaScript use the collection path. Both are retained as separately named documented variants; tenant execution of the example-only variant is unverified. Examples use body id; the parameter table calls it shiftID. Body fields: shiftID, name, description, recurrence, members, siteHolidays, timezone, start, end, rotation, repeatEscalation, notifyEndofEscalation, id, notifyEndOfEscalation. Reference: https://help.xmatters.com/xmapi/#update-a-shift Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Complete API JSON payload (including nested fields). See https://help.xmatters.com/xmapi/#update-a-shift | |
| path | Yes | ||
| query | No | API query parameters; arrays are comma-joined. Documented names: none. Pagination is explicit using offset and limit; results are not automatically combined. | |
| confirm | Yes | Explicit approval of this exact mutation. Operator must also enable XMATTERS_ALLOW_WRITES. |