GitLab API icon

GitLab API

Gitlab

Actions1062

Environments → postApiV4ProjectsIdEnvironmentsStopStale

AI-generated

Summary

Stops stale environments for a GitLab project via the GitLab API.

Inputs

  • projectId (required) — The ID or URL‑encoded path of the project (path parameter id).
  • requestBody (required) — Body matching the postApiV4ProjectsIdEnvironmentsStopStale schema defined in the node’s OpenAPI spec.
  • skipAuthentication — If true, the request runs without credentials; otherwise uses the gitlabApi credential.
  • baseUrl — Alternate base URL for self‑hosted GitLab instances (defaults to https://gitlab.com).
  • method — HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH). Defaults to GET but the API expects POST for this endpoint.

Output shape

object

Returns the JSON response from the GitLab API, which contains details of the environments that were stopped.

Links

Discussion