Skip to content

Put somebody on cover

POST
/cover
curl --request POST \
--url https://example.com/cover \
--header 'Content-Type: application/json' \
--cookie bottle.session_token=<bottle.session_token> \
--data '{ "day": "2026-04-15", "userId": "example", "forUserId": "example", "patchId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "note": "example" }'

For a day: covering for a driver takes that driver’s patches, covering a patch takes that one, on top of their own. Either way they are down to work that day.

Media typeapplication/json
object
day
required
string format: date
userId
required
string
forUserId
string | null
patchId

UUID v7

string | null format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f
note
string | null
<= 500 characters

On cover

Media typeapplication/json
object
id
required

UUID v7

string format: uuid
day
required
string format: date
userId
required
string
userName
required
string
forUserId
required
string | null
forUserName
required
string | null
patchId
required

UUID v7

string | null format: uuid
patchName
required
string | null
note
required
string | null
Example
{
"id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f",
"patchId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f"
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or without the permission this needs

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not found

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}