---
docId: doc_60c805fdec1a4421a5dc2f44895ad75e
title: Edit an escalation
description: Change an escalation. It applies immediately to every agent that uses it and does not touch open cases.
api:
  group: escalaciones
  auth: bearer
  operations:
    - operationId: updateEscalation
      method: PATCH
      path: '/v1/escalations/{escalationId}'
      postmanName: Edit an Escalation
---

<script>
  import { Ways, Note } from '$lib/components';
</script>

# Edit an escalation

Change when help is requested, the required data or other escalation settings. Send at least one field. **The change applies immediately** to all agents that have it, without publishing them. Open cases keep the configuration they were created with.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X PATCH https://api.platic.ai/v1/escalations/$ESCALATION_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "defaultPriority": "high" }'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.escalations.update("escalation_123", { defaultPriority: "high" });
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `escalationId` | string | Escalation id | ✓ |

## Request body

Send at least one field you want to change. The `fields`, `assignment`, `agent` and `lifecycle` sections **are replaced in full**: to add a data point, send the entire list.

```json
{
  "defaultPriority": "high",
  "lifecycle": { "inactivityCloseHours": 48, "maxOpenDays": 7, "untakenDiscardHours": 48 }
}
```

The same as [create an escalation](/api-reference/escalations/create#request-body), all optional: `name`, `description`, `prefix`, `color`, `fields`, `defaultPriority`, `assignment`, `agent`, `lifecycle` and `allowManual`.

Within each replaced section, omitted fields take their default values:

- `"agent": { "canClose": true }` leaves `keepReplying` at `true`. To change the wait message, send `keepReplying: false` and `waitMessage` together.
- Sending `lifecycle` without `untakenDiscardHours` puts it back at `72` hours (send `null` if you want to keep it off).

## Response

`200 OK` with the escalation as it ended up.

```json
{
  "status": "success",
  "data": {
    "id": "Et7hQ2mVx9LpRk3s",
    "workspaceId": "Wk5rT8yUi2OpAs4d",
    "name": "Invoice error",
    "description": "The customer says their invoice has a wrong detail (tax ID, company name or amount) and asks to fix it.",
    "prefix": "INV",
    "color": "#2563EB",
    "fields": [
      {"key": "order_number", "label": "Order number", "kind": "text", "required": true, "customFieldId": null, "sync": "fill_empty"},
      {"key": "tax_id", "label": "Correct tax ID", "kind": "text", "required": true, "customFieldId": null, "sync": "fill_empty"},
      {"key": "email", "label": "Email for the invoice", "kind": "email", "required": false, "customFieldId": "billing_email", "sync": "fill_empty"}
    ],
    "defaultPriority": "high",
    "assignment": {
      "mode": "contact_owner",
      "userIds": ["Us9fG3hJ6kL2mN8b"],
      "userEmails": ["billing@acme.com"]
    },
    "agent": {
      "keepReplying": false,
      "canClose": false,
      "waitMessage": "I passed your case to the billing team. They will write to you as soon as they can."
    },
    "lifecycle": {"inactivityCloseHours": 48, "maxOpenDays": 7, "untakenDiscardHours": 48},
    "allowManual": true,
    "status": "active",
    "createdAt": "2026-11-10T16:20:00.000Z",
    "createdBy": {"kind": "api", "id": "Ak7Pz2Lm9Qx4Wc6e"},
    "updatedAt": "2026-11-12T09:41:00.000Z",
    "updatedBy": {"kind": "api", "id": "Ak7Pz2Lm9Qx4Wc6e"},
    "archivedAt": null
  }
}
```

`data` is the escalation, with the fields in [get an escalation](/api-reference/escalations/get#response).

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | The body is empty (`Nothing to change`), a field is not valid or the body has an unknown one. Also `agent.waitMessage` without `agent.keepReplying: false`. `details.issues` says what |
| `400` | `CUSTOM_FIELD_NOT_FOUND` | A data point has a `customFieldId` that does not exist in the workspace. `details.issues` says which |
| `400` | `CUSTOM_FIELD_INCOMPATIBLE` | The data point's `kind` does not match the custom field's type: for example, an `email` data point linked to a `number` field. `details.issues` says which |
| `403` | `FORBIDDEN` | With an OAuth token, the person is not an owner or administrator of the workspace |
| `404` | `ESCALATION_NOT_FOUND` | The escalation does not exist in this workspace |
| `409` | `ESCALATION_ARCHIVED` | The escalation is archived. An archived escalation is not edited |
| `409` | `CONFLICT` | Someone else changed it at the same time, several times in a row. Try again |

The errors that come up on any operation are in the [cases introduction](/api-reference/cases#common-errors).

<Note type="important">

Changing `description` changes when every agent that uses the escalation escalates. Changing `prefix` only affects new case numbers.

</Note>

## Notes

- If two changes arrive at the same time, the last one wins.
- From an AI agent, the tool is [`update_escalation`](/mcp/tools#escalations).
