PUT
/api/users/{user_id}/availability/{id}
curl \
-X PUT https://ppammedellin.com/api/users/{user_id}/availability/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"shift":{"id":"string"}}'
Request example
{
"shift": {
"id": "string"
}
}
Response examples (200)
{
"id": "string",
"shift": {
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"dayOfWeek": 42,
"seatsCount": 42,
"isEnabled": true,
"id": "string",
"location": {
"id": "string",
"name": "string"
}
}
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}