Update a pipeline stage
PUT /pipelines/{pipelineUuid}/stages/{uuid}
/pipelines/{pipelineUuid}/stages/{uuid}Changes the name, color, probability, time limit, entry requirements or loss reason rule of a stage. Properties you leave out keep their value. Returns the whole pipeline.
When to use: To rename a stage, change its probability or require fields before a deal can enter it.
When not to use: To change the order, use reorder_pipeline_stages; to make it the initial stage, set_pipeline_initial_stage; to remove it, delete_pipeline_stage.
Side effects: Existing deals in the stage are not re-checked against new entry requirements; the rules apply the next time a deal enters. Changing the probability changes the forecast of the open deals in the stage. The change is saved atomically. Existing deals keep their data; nothing is sent, no automation runs and no webhook fires (CRM webhook events do not exist yet).
Permissions: Requires a CRM seat and the crm.pipelines.manage capability. It also needs admin access to the pipeline.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the pipeline. Get it from list_pipelines.
uuidUUID of the stage. Get it from get_pipeline.
uuidThe updated Pipeline resource
TypeScript Definitions
Use the request body type in TypeScript.
Pipelines of the public API (plan fase 4, Tasks 15 and 16). Generated from the approved proposal by fase-4/tools/gen_pipeline_read.py and edited by hand afterwards: the texts are the proposal's.
pipeline:list is the summary every item of the list has; pipeline:detail adds what only get_pipeline returns
(the initial stage, the stages and the loss reasons).
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/pipelines/d2a7e5b1-9c43-4f68-b0a1-3e6c8f2d4b57/stages/f4b8c2d6-1a53-4e97-8d20-6c3a9e5b7f01" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "color": "string", "type": "open", "probability": 0, "max_calendar_days": 1, "loss_reason_mode": "disabled", "required_fields": [ "string" ], "required_attributes": [ "string" ] }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "reference_currency": "string", "default": true, "allow_custom_probability": true, "allow_multiple_currencies": true, "access_level": "read", "initial_stage": "f73de70a-30e5-4d17-9ead-29d8c8067fde", "stages": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "color": "string", "type": "open", "probability": 0, "position": 0, "max_calendar_days": 0, "loss_reason_mode": "disabled", "required_fields": [ "string" ], "required_attributes": [ "string" ] } ], "loss_reasons": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "position": 0, "status": "active", "used": true } ]}