Reset the sandbox
curl --request POST \
--url https://api.degroshi.com/v1/sandbox/reset \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.degroshi.com/v1/sandbox/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.degroshi.com/v1/sandbox/reset"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"name": "<string>",
"resets_left_today": 20,
"seed_version": 1,
"seeded_at": "2023-11-07T05:31:56Z",
"space_id": "<string>"
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}Sandbox
Reset the sandbox
Puts the sandbox back to its demo data, so a test run starts clean: everything in it is deleted and seeded again; its id, keys and webhook endpoints stay, and change-feed cursors get 410 and read again. Only a sandbox key (dg_test_) can call it (403 SBX_004). 20 resets a day (429 SBX_003 with details.retry_after).
POST
https://api.degroshi.com
/
v1
/
sandbox
/
reset
Reset the sandbox
curl --request POST \
--url https://api.degroshi.com/v1/sandbox/reset \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.degroshi.com/v1/sandbox/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.degroshi.com/v1/sandbox/reset"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"name": "<string>",
"resets_left_today": 20,
"seed_version": 1,
"seeded_at": "2023-11-07T05:31:56Z",
"space_id": "<string>"
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}