update_project_variable
Update an existing GitLab CI/CD project variable's value or settings—such as masking, protection, scope, or type—to keep pipelines configured correctly.
Instructions
Update an existing CI/CD project variable's value or configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable key/name to update | |
| raw | No | Raw value status | |
| value | No | New variable value | |
| masked | No | Masked status in job logs | |
| protected | No | Protected status | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| description | No | Variable description | |
| variable_type | No | Variable type | |
| environment_scope | No | Environment scope filter |