Skip to content

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.

id
required
One of:
string

The ID or URL-encoded path of the project owned by the authenticated user

Media type application/json
object
before
required

Stop all environments that were last modified or deployed to before this date.

string format: date-time
nullable
Example generated
{
"before": "2026-04-15T12:00:00Z"
}

Created

Bad request

Unauthorized

Not Found