latestOpenAPI 3.0.02026-08-2217901.1 MB
ef9153fcac7c
Users
Set user work shifts
Set per-day work shift capacity for one or more users. Re-sending a (user, date) pair overwrites the previous override. A maximum of 250 work shifts can be set per request.
post/work-shifts
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
Headers
x-organization-idinteger
Required if using a multi organizations token
Request body
Example request
{
"workShifts": [
{
"userId": 1,
"date": "2022-01-01T00:00:00.000Z",
"seconds": 28800,
"status": "WORKING"
}
]
}Response
Successfully set the work shifts.