GitLab API

GitlabTool

Actions1095

Environments → putApiV4ProjectsIdEnvironmentsEnvironmentId

AI-generated

Summary

Updates a GitLab project environment by sending a request to /api/v4/projects/{id}/environments/{environment_id}. The request method defaults to GET in the UI, so select PUT to perform the update; the operation requires the project ID or URL-encoded path, the environment ID, and a request body matching the endpoint schema, which is not exposed in these properties.

Inputs

  • baseUrl — GitLab instance URL; defaults to https://gitlab.com. The node source says the credential defines the base URL.
  • method — HTTP method for the request; defaults to GET. Choose PUT to update the environment.
  • pathParameters.id (required) — ID or URL-encoded path of the project owned by the authenticated user.
  • pathParameters.environment_id (required) — ID of the environment.
  • request body (required) — Body for the endpoint's putApiV4ProjectsIdEnvironmentsEnvironmentId schema. The schema fields are not shown in the supplied properties.
  • skipAuthentication — Defaults to false. When authentication is not skipped, the node declares the GitLab API credential as required.

Output shape

A single response from the GitLab API.

The source pack delegates request execution to the shared OpenApiToolNode implementation and does not show response shaping or the endpoint response schema.

Examples

Example 1: Rename or otherwise modify an existing environment

Set Method to PUT, provide the project ID or URL-encoded path and environment ID, and supply a body accepted by the endpoint schema.

Links

Discussion