Update project variable
documentedUpdate a project CI/CD variable.
PUT /projects/:id/variables/:keyProjectsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://gitlab.com/api/v4/projects/{{$id}}/variables/{{$key}}" \
-X PUT \
-H "PRIVATE-TOKEN: {{GITLAB_API_KEY}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"value": "{{$value}}", "description": "{{$description}}", "environment_scope": "{{$environment_scope}}", "masked": {{$masked}}, "protected": {{$protected}}, "variable_type": "{{$variable_type}}"}'