GitLab API icon

GitLab API

Gitlab

Actions1062

Ci_variables → putApiV4AdminCiVariablesKey

AI-generated

Summary

Update the value of a specific CI variable identified by its key for GitLab admin via a PUT request.

Inputs

  • key (required) — The key of the CI variable to update.
  • putApiV4AdminCiVariablesKey (required) — The request body containing the updated value and details of the CI variable.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Option to skip authentication for the request, default is false.

Output shape

a single JSON object representing the updated CI variable's details as returned by the GitLab API.

This operation performs an authenticated HTTP PUT to the path /api/v4/admin/ci/variables/{key}, replacing the variable data with that provided in the request body. Authentication is required unless explicitly skipped.

Examples

Example 1: To update the value of an existing CI variable with key 'MY_VAR', provide the 'key' path parameter as 'MY_VAR' and structure the request body with the new variable data. The node will return the updated CI variable's JSON representation.

Set 'key' to the target variable's key string and supply the body with the desired variable updates.

Links

Discussion