Box
Stop box
post/boxes/{boxId}/stop
Path parameters
boxIdstring required
Example:c9bdc193-b54b-4ddb-a035-5ac0c598d32d
Box ID
Request body
Example request
{
"wait": true
}Response
Example response
{
"id": "c9bdc193-b54b-4ddb-a035-5ac0c598d32d",
"status": "running",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z",
"expiresAt": "2024-01-15T10:40:00.000Z",
"reason": "Box terminated by user",
"type": "linux",
"config": {
"os": {
"version": "ubuntu-20.04"
},
"workingDir": "/home/user",
"labels": {
"project": "web-scraper",
"environment": "production",
"team": "backend",
"version": "v1.2.0"
},
"envs": {
"MY_ENV_KEY": "env value"
},
"cpu": 2,
"memory": 1024,
"storage": 30,
"publicIp": "8.8.8.8",
"deviceType": "container"
}
}