Create a new schedule for a specific location.
Request
Body Params application/json
shift_start
string <date-time>
requiredshift_end
string <date-time>
required{
"location_id": "string",
"staff_id": "string",
"shift_start": "2019-08-24T14:15:22Z",
"shift_end": "2019-08-24T14:15:22Z"
}
Request samples
curl --location --request POST '/schedules' \
--header 'Content-Type: application/json' \
--data-raw '{
"location_id": "string",
"staff_id": "string",
"shift_start": "2019-08-24T14:15:22Z",
"shift_end": "2019-08-24T14:15:22Z"
}'
Responses
application/json
Schedule created successfully
shift_start
string <date-time>
optionalshift_end
string <date-time>
optional{
"schedule_id": "string",
"location_id": "string",
"staff_id": "string",
"shift_start": "2019-08-24T14:15:22Z",
"shift_end": "2019-08-24T14:15:22Z",
"working_now": true
}
Modified at 2024-12-17 09:32:50