Rotation Schedules
Update rotation schedule
Changed onUpdates a custom work rotation and, optionally, who is assigned to it. Changing days or startDate re-bases the cycle for every user currently assigned to the rotation. Adding users unassigns them from whatever rotation they are currently on, and removing them returns them to the organization default rotation. isDefault and sourceTemplatePattern are fixed at creation and cannot be changed here. The organization is resolved from {id}, so no x-organization-id header is required.
patch/rotationschedules/{id}
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Path parameters
idinteger required
ID of the rotation schedule
Query parameters
skipWebhookboolean
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Request body
Example request
{
"name": "Team A - 4 on / 3 off",
"startDate": "2022-01-01T00:00:00.000Z",
"days": [
{
"dayType": "WORKING",
"seconds": 28800
}
],
"users": {
"addedIds": [
123,
456
],
"removedIds": [
789
]
}
}Response
Successfully updated rotation schedule
Example response
{
"rotationSchedule": {
"id": 963,
"organizationId": 1,
"name": "Team A - 4 on / 3 off",
"startDate": "2022-01-01T00:00:00.000Z",
"days": [
{
"dayType": "WORKING",
"seconds": 28800
}
],
"sourceTemplatePattern": "pitman",
"assignedUsersCount": 3,
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"archivedAt": "2022-01-01T00:00:00.000Z"
}
}Changes
- info
endpoint added
- info