GitLab API icon

GitLab API

Gitlab

Actions1062

Environments → postApiV4ProjectsIdEnvironmentsEnvironmentIdStop

AI-generated

Summary

Stops a specified environment in a GitLab project. Sends a POST request to /api/v4/projects/{id}/environments/{environment_id}/stop. Set the required Path Parameters id and environment_id. Uses GitLab API authentication unless Skip Authentication is enabled. baseUrl defaults to https://gitlab.com and can be overridden.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user
  • environment_id (required) — The ID of the environment

Output shape

object

Returns the GitLab API response for the stopped environment.

Links

Discussion