Easymailing
Pipelines

Archive a pipeline loss reason

PUT /pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/archive

PUT/pipelines/{pipelineUuid}/loss_reasons/{uuid}/actions/archive

Archives a loss reason: it can no longer be chosen for new losses, but deals already lost with it keep it. Returns the whole pipeline.

When to use: To retire a reason that is no longer valid without losing the history.

When not to use: To delete or rename a reason, use update_pipeline_loss_reason (reasons are never deleted). To do the opposite, use restore_pipeline_loss_reason.

Side effects: Closed deals keep the reason in their history. 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.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

pipelineUuid*string

UUID of the pipeline. Get it from list_pipelines.

Formatuuid
uuid*string

UUID of the loss reason. Get it from get_pipeline.

Formatuuid

Response 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/archive" \  -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    }  ]}