pipeline_schedules
Update a pipeline schedule
Updates a pipeline schedule for a project. After the update is done, it is rescheduled automatically.
put/api/v4/projects/{id}/pipeline_schedules/{pipeline_schedule_id}
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
pipeline_schedule_idinteger required
The pipeline schedule id
Request body
Example request
{
"description": "Test schedule pipeline",
"ref": "develop",
"cron": "* * * * *",
"cron_timezone": "Asia/Tokyo",
"active": true,
"inputs": [
{
"name": "deploy_strategy",
"value": "blue-green"
}
]
}Response
Update a pipeline schedule
Example response
{
"id": 13,
"description": "Test schedule pipeline",
"ref": "develop",
"cron": "* * * * *",
"cron_timezone": "Asia/Tokyo",
"next_run_at": "2017-05-19T13:41:00.000Z",
"active": true,
"created_at": "2017-05-19T13:31:08.849Z",
"updated_at": "2017-05-19T13:40:17.727Z",
"owner": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"last_pipeline": {
"id": 1,
"iid": 2,
"project_id": 3,
"sha": "0ec9e58fdfca6cdd6652c083c9edb53abc0bad52",
"ref": "feature-branch",
"status": "success",
"source": "push",
"created_at": "2022-10-21T16:49:48.000+02:00",
"updated_at": "2022-10-21T16:49:48.000+02:00",
"web_url": "https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61"
},
"variables": {
"variable_type": "env_var",
"key": "TEST_VARIABLE_1",
"value": "TEST_1",
"environment_scope": "*",
"description": "This variable is being used for ..."
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.