Path parameters
-
location_id
string Required
POST
/api/locations/{location_id}/shifts
curl \
-X POST https://metropolitanabogota.org/api/locations/{location_id}/shifts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startTime":"09:42:00+00:00","endTime":"09:42:00+00:00","dayOfWeek":42,"seatsCount":42,"isEnabled":true}'
Request example
{
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"dayOfWeek": 42,
"seatsCount": 42,
"isEnabled": true
}
Response examples (201)
{
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"dayOfWeek": 42,
"seatsCount": 42,
"isEnabled": true,
"id": "string"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}