GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → postApiV4ProjectsIdVariables

AI-generated

Summary

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

Inputs

  • Id (required) — The ID of the project or the URL-encoded namespace/project name of the project owned by the authenticated user.
  • postApiV4ProjectsIdVariables (required) — The details of the CI/CD variable to create in the project, provided in the request body.
  • Skip Authentication — Optional boolean to skip authentication if true; defaults to false.
  • baseUrl — The base URL for the GitLab instance, defaults to 'https://gitlab.com'.

Output shape

a single record containing the created CI/CD variable's details

The operation sends a POST request to '/api/v4/projects/{id}/variables' and returns the created variable object on success.

Links

Discussion