GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsIdPipelineSchedulesPipelineScheduleIdVariablesKey

AI-generated

Summary

Update a specific CI/CD pipeline schedule variable for a given project on GitLab by specifying the project ID or path, pipeline schedule ID, and the variable key, along with the new variable details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the pipeline schedule.
  • pipeline_schedule_id (required) — The ID of the pipeline schedule whose variable you want to update.
  • key (required) — The key (name) of the variable to update for the pipeline schedule.
  • putApiV4ProjectsIdPipelineSchedulesPipelineScheduleIdVariablesKey (required) — The request body containing the updated variable information such as the new value and optionally whether it is protected or masked.

Output shape

a single record representing the updated pipeline schedule variable

Returns the updated pipeline schedule variable object from the GitLab API. Requires authentication unless 'Skip Authentication' is set. Uses the PUT HTTP method on the /api/v4/projects/{id}/pipeline_schedules/{pipeline_schedule_id}/variables/{key} endpoint.

Links

Discussion