Switch alert emails on or off (owners). Webhooks get every alert either way.
PUT
/alert-settings
const url = 'https://api.global.stillbox.example/v1/alert-settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":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://api.global.stillbox.example/v1/alert-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
Email alerts to owners (and to a sandbox’s creator).
boolean
Example generated
{ "email": true}Responses
Section titled “Responses”The settings
Media typeapplication/json
object
email
required
Email alerts to owners (and to a sandbox’s creator).
boolean
Example generated
{ "email": true}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}