Set what Bottle support may do in this business
PUT
/support-access
const url = 'https://example.com/support-access';const options = { method: 'PUT', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"level":"none","hours":24}'};
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/support-access \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "level": "none", "hours": 24 }'Nothing is visible to Bottle staff without this. view lets a member of staff open the account as one of your people and look; act lets them change things too. Either runs out after the hours given. none takes it away now. Everything staff do inside is recorded.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”The grant afterwards
Media typeapplication/json
object
level
required
string
until
required
string | null format: date-time
setByName
required
string | null
Example
{ "level": "none"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, not an owner or admin, or a key rather than a person
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" } ]}