Gracefully stop a running CloudCLI environment. The container is paused and SSH and HTTPS access are disabled, but all data on /workspace/ is preserved on the server disk. You can restart the environment any time with POST /environments/{id}/start and get back exactly as you left it.Running processes in the container receive a graceful shutdown signal before the container is stopped. Stopped environments consume no CPU or memory and don't count against your running-hours quota (if relevant), so stopping is the right tool when you're pausing work overnight or over a weekend rather than deleting outright. Persistent storage remains attached to the same server; the environment returns to that same host on the next start.
Request
Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
Path Params
Responses
🟢200OK
application/json
Environment stopping
Body
🟠400Bad Request
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://cloudcli.ai/api/v1/environments//stop' \
--header'X-API-KEY: <api-key>'