Stop stale environments
POST
/api/v4/projects/{id}/environments/stop_stale
Stops all environments that were last modified or deployed to before a specified date. Excludes protected environments.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
before
required
Stop all environments that were last modified or deployed to before this date.
string format: date-time
Example generated
{ "before": "2026-04-15T12:00:00Z"}Responses
Section titled “ Responses ”Created
Bad request
Unauthorized
Not Found