Restore a pipeline loss reason
PUT /pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/restore
/pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/restoreMakes an archived loss reason available again for new losses. Returns the whole pipeline.
When to use: When a retired reason is needed again.
When not to use: To delete or rename a reason, use update_pipeline_loss_reason (reasons are never deleted). To do the opposite, use archive_pipeline_loss_reason.
Side effects: The reason goes back to the end of the active ones. 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 loss reason. Get it from get_pipeline.
uuidResponse Body
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/loss_reasons/e7a2d9c4-6b31-4a58-92f0-4c1e8b6d3a15/actions/restore" \ -H "X-Auth-Token: YOUR_API_KEY"{ "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 } ]}