Skip to content

Set when Bottle plans the next day

PUT
/rounds/planning-time
curl --request PUT \
--url https://example.com/rounds/planning-time \
--header 'Content-Type: application/json' \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token> \
--data '{ "planAt": "example" }'

A quarter hour from 12:00 to 23:00, UK time.

Media typeapplication/json
object
planAt
required
string

Example generated

{
"planAt": "example"
}

When Bottle plans the next day

Media typeapplication/json
object
planAt
required
string

Example generated

{
"planAt": "example"
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not the owner in the office app, or on a plan without rounds

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not open to this business

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"
}
]
}