Set who stands in while the owner is away
PUT
/rounds/autonomy-cover
const url = 'https://example.com/rounds/autonomy-cover';const options = { method: 'PUT', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"deputyUserId":"example","awayFrom":"example","awayTo":"example","dailySummary":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/rounds/autonomy-cover \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "deputyUserId": "example", "awayFrom": "example", "awayTo": "example", "dailySummary": true }'The deputy has to be an owner or admin here. Moves no level and sends nothing.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
deputyUserId
required
string | null
awayFrom
required
string | null
awayTo
required
string | null
dailySummary
required
boolean
Example generated
{ "deputyUserId": "example", "awayFrom": "example", "awayTo": "example", "dailySummary": true}Responses
Section titled “Responses”Who stands in, and when
Media typeapplication/json
object
deputyUserId
required
string | null
awayFrom
required
string | null
awayTo
required
string | null
dailySummary
required
boolean
candidates
required
Array<object>
object
userId
required
string
name
required
string
Example generated
{ "deputyUserId": "example", "awayFrom": "example", "awayTo": "example", "dailySummary": true, "candidates": [ { "userId": "example", "name": "example" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Moving up needs the subscription paid up
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"}That level is not open yet
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
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}