GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → postApiV4AdminCiVariables

AI-generated

Summary

Create a new GitLab CI/CD variable at the administrator level via the GitLab API.

Inputs

  • skipAuthentication — Set to true to skip authentication; otherwise, API authentication is required.
  • baseUrl — Base URL for the GitLab instance; defaults to https://gitlab.com.
  • method (required) — HTTP method for the request; for this operation, typically POST.
  • requestBody (required) — Request body matching the 'postApiV4AdminCiVariables' schema specifying details of the CI/CD variable to create.

Output shape

a single JSON object representing the created CI/CD variable as returned by the GitLab API

The operation sends a POST request to the '/api/v4/admin/ci/variables' endpoint. Authentication via the 'gitlabApi' credential is required unless 'Skip Authentication' is enabled. The response includes the details of the newly created variable as per GitLab's API specification.

Links

Discussion