GitLab API

GitlabTool

Actions1095

Protected_tags → postApiV4ProjectsIdProtectedTags

AI-generated

Summary

Creates a protected tag for a GitLab project by sending a POST request to /api/v4/projects/{id}/protected_tags. Provide the project ID or URL-encoded path and the required request body for this endpoint; the body schema is not exposed in the operation properties.

Inputs

  • Skip Authentication — When enabled, skips credential authentication; otherwise the GitLab API credential is used.
  • Base URL — The GitLab instance base URL, defaulting to https://gitlab.com. The node source says the actual base URL is defined by the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET; the endpoint operation is named for POST, but the UI permits selecting another method.
  • Path Parameters → Id (required) — GitLab project ID or URL-encoded project path.
  • Request body (required) — Body for the protected tag creation endpoint. Its fields are not exposed in the supplied properties.

Output shape

A single GitLab API response item.

The supplied source delegates request execution and response shaping to OpenApiToolNode; it does not specify the response fields or error shape.

Examples

Example 1: Create a protected tag for a project

Set the project ID or URL-encoded path, provide the endpoint's required body, and authenticate with a GitLab API credential.

Links

Discussion