Edit user status
Edit a user's status for a specific date
Path Parameters
companyID companyID required
The id of the company
userID userID required
The id of the user
date date required
The date to edit the status for (YYYY-MM-DD)
application/json
Request Body
Status fields to update
locationIDMorning string
Location ID for the morning
locationIDAfternoon string nullable
Location ID for the afternoon
Responses
- 200
- 400
- 404
The updated status
application/json
Schema
Example (from schema)
Schema
date date
The date of the status
locationIDMorning string
Resolved ID for the morning
locationIDAfternoon string nullable
Resolved ID for the afternoon
{
"date": "2021-01-01",
"locationIDMorning": "2e8f9915-fda0-450c-95a3-d61f93c66fa9",
"locationIDAfternoon": "2e8f9915-fda0-450c-95a3-d61f93c66fa9"
}
An error when a parameter is invalid
application/json
Schema
Example (from schema)
Schema
message string
Error message
{
"message": "User not found"
}
An error when the status is not found
application/json
Schema
Example (from schema)
Schema
message string
Error message
{
"message": "User not found"
}
Loading...