GitLab API

GitlabTool

Actions1095

Ci_variables → putApiV4ProjectsIdVariablesKey

AI-generated

Summary

Update an existing CI/CD variable's value for a specified GitLab project by its ID or URL-encoded path and variable key.

Inputs

  • id (required) — The ID or URL-encoded path (NAMESPACE/PROJECT_NAME) of the project owned by the authenticated user where the variable exists.
  • key (required) — The key identifier of the CI/CD variable to update.
  • putApiV4ProjectsIdVariablesKey (required) — Request body containing the updated attributes of the CI/CD variable, such as a new value or other allowed properties.
  • baseUrl — Optional GitLab base URL to override the default 'https://gitlab.com'.
  • skipAuthentication — Option to skip using authentication for the request; defaults to false.

Output shape

an object representing the updated CI/CD variable as returned by the GitLab API

The response contains the updated variable's details on success. Errors will be conveyed according to the GitLab API's standard error format.

Links

Discussion