Skip to content

Set what Bottle support may do in this business

PUT
/support-access
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.

Media typeapplication/json
object
level
required
string
Allowed values: none view act
hours
Any of:
number
Allowed values: 24

The grant afterwards

Media typeapplication/json
object
level
required
string
Allowed values: none view act
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
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"
}
]
}