GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → postApiV4GroupsIdVariables

AI-generated

Summary

Create a new CI/CD variable in a specified GitLab group by providing the group ID and the variable details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group where the variable will be created.
  • postApiV4GroupsIdVariables (required) — The request body containing the details of the CI/CD variable to create, such as key, value, and other optional properties.

Output shape

a JSON object representing the newly created CI variable for the specified group

Returns the created group's CI/CD variable details as per the GitLab API; requires authentication unless 'Skip Authentication' is enabled.

Examples

Example 1: Create a CI variable

Set 'id' to the target group ID and provide all required variable details in 'postApiV4GroupsIdVariables' request body.

Links

Discussion