Enable/disable test/sandbox mode. Refused on production apps (422). Emits `settings.updated`.
PUT
Secret API key operationId: set_sandbox/v1/applications/{id}/sandbox Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Path parameters
idstring<uuid> requiredApplication id
Request body · required
sandboxboolean required
Responses
200 Updated
{
"data": {
"sandbox": false
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 422 Sandbox not allowed on production
Request
curl -X PUT "http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/sandbox" \
-H "Content-Type: application/json" \
-d '{
"sandbox": false
}'Try it
live requestPUT
http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/sandbox