ValeronDocs

Fields and pipelines

Update a pipeline

PATCH/v1/pipelines/{pipeline_id}

Requires the scope schema:write

Rename it, replace its ordered stages (send each existing stage with its id; a stage left out is archived) or make it the default.

#Path parameters

pipeline_idstringrequired

#Request body

application/json
is_defaultboolean or null
Allowed values: true
namestring or null
stagesobject[] or null
Items: 1 to 50
Show child attributesHide child attributes
colorstring or null
Allowed values: "purple" "green" "red" "yellow" "gray" "pink" "blue" "orange"
forecast_categorystringrequired
Allowed values: "pipeline" "best_case" "commit" "closed" "omitted"
idstring or null
namestringrequired
probabilitynumber or null
Minimum: 0
Maximum: 1
typestringrequired
Allowed values: "open" "won" "lost"

#Responses

200Successful Response
Show response fieldsHide response fields
idstringrequired
is_defaultbooleanrequired
namestringrequired
stagesobject[]required
Show child attributesHide child attributes
colorstring or nullrequired
Allowed values: "purple" "green" "red" "yellow" "gray" "pink" "blue" "orange"
forecast_categoryobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
idstringrequired
namestringrequired
probabilitynumber or nullrequired
typeobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.