GitLab API

GitlabTool

Actions1095

Ci_variables → postApiV4GroupsIdVariables

AI-generated

Summary

Create a new CI/CD variable for a specified GitLab group by providing the group ID or URL-encoded path and the variable details.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group to add the CI variable to.
  • postApiV4GroupsIdVariables (required) — The details of the CI variable to create, including key, value, and optional flags, following the GitLab API schema for group variables.

Output shape

a single record representing the created CI variable

The output corresponds to the GitLab API response for creating a group variable at /api/v4/groups/{id}/variables. Authentication is required unless skipAuthentication is enabled.

Links

Discussion