Edit an escalation

SDK platic.escalations.update()

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

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

Path parameters

ParameterTypeDescriptionRequired
escalationIdstringEscalation 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.

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

The same as create an escalation, 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.

{
  "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.

Errors

Statusdetails.codeWhen
400INVALID_REQUESTThe 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
400CUSTOM_FIELD_NOT_FOUNDA data point has a customFieldId that does not exist in the workspace. details.issues says which
400CUSTOM_FIELD_INCOMPATIBLEThe 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
403FORBIDDENWith an OAuth token, the person is not an owner or administrator of the workspace
404ESCALATION_NOT_FOUNDThe escalation does not exist in this workspace
409ESCALATION_ARCHIVEDThe escalation is archived. An archived escalation is not edited
409CONFLICTSomeone 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.

Notes

  • If two changes arrive at the same time, the last one wins.
  • From an AI agent, the tool is update_escalation.