Save project pipeline
PUT/api/projects/:project_id/pipeline
Replaces a project's pipeline in one save, in the order sent: a stage with an id is updated, one without is added, one left out is removed, with one step per stage after the first; freezes, a step's gates and a stage's after gates and target, when sent, replace what is stored, and are kept when left out. A running release finishes on its old settings, and each save that changes something is recorded in the pipeline's history. Requires Edit on the project, and custom mode on a plan with custom pipelines (409 otherwise); a stage out of order, a name or branch used twice, a step or freeze rule out of range (named in field), a gate the step cannot take (naming the stage and gate), or a step an org pipeline rule set to Block refuses is refused with 422, and the response's warnings list the rules set to Warn it breaks.
Request
Responses
- 200
- 422
OK
Unprocessable content