environments

Stop stale environments

Stops all environments that were last modified or deployed to before a specified date. Excludes protected environments.

post/api/v4/projects/{id}/environments/stop_stale

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

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

Request body

beforestring date-time required

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

Response

Stop stale environments

Changes

No recorded changes to this operation across all 5 revisions of this API.