Create a new schedule for a specific location.
Request
Body Params application/json
{
"location_id": "string",
"staff_id": "string",
"shift_start": "2019-08-24T14:15:22Z",
"shift_end": "2019-08-24T14:15:22Z"
}
Request Code 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
{
"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