GitLab API

GitlabTool

Actions1095

Environments → postApiV4ProjectsIdEnvironments

AI-generated

Summary

Sends a GitLab API request to create an environment for a project. Supply the project ID or URL-encoded path and the required request body; choose the HTTP method in the node, which defaults to GET despite this operation’s POST endpoint.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips the GitLab API credential; otherwise the node requires that credential.
  • Base URL — Defaults to https://gitlab.com. The source says the effective base URL is defined by the GitLab API credential.
  • Method — HTTP method to use; defaults to GET. Available choices include POST.
  • Path Parameters: Id (required) — Project ID or URL-encoded project path, as accepted by the GitLab API.
  • Request Body (required) — The operation declares a required body matching the GitLab postApiV4ProjectsIdEnvironments schema; its fields are not exposed in the supplied properties.

Output shape

A GitLab API response for the environment request.

The supplied source delegates request execution to OpenApiToolNode and does not show response fields or item handling. The endpoint path is /api/v4/projects/{id}/environments; despite the operation name indicating POST, the configurable method defaults to GET.

Examples

Example 1: Create a project environment

Set Path Parameters → Id to the project ID or URL-encoded path, provide a body conforming to the operation schema, and set Method to POST.

Links

Discussion