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 Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
before
required
Stop all environments that were last modified or deployed to before this date.
string format: date-time
Examplegenerated
{ "before": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”Created
Bad request
Unauthorized
Not Found