Disconnect an escalation

SDK platic.agents.escalations.disconnect()

Stop using an escalation on this agent by sending its escalationId. As with connecting it, the change creates a version from the published one and publishes it immediately. The escalation remains in the library and on other agents; open cases do not change.

Example

await platic.agents.escalations.disconnect("agent_123", "escalation_123");

Path parameters

ParameterTypeDescriptionRequired
agentIdstringAgent id✓
escalationIdstringEscalation id✓

Request body

It takes no body.

Response

200 OK with the escalations the agent has left, the new version and the publication.

{
  "status": "success",
  "data": {
    "changed": true,
    "items": [
      { "escalationId": "Et7hQ2mVx9LpRk3s", "enabled": true }
    ],
    "version": {
      "versionId": "v9",
      "number": 9,
      "basedOnVersionId": "v8",
      "restoredFromVersionId": null,
      "copiedFrom": null,
      "createdAt": "2026-11-12T17:20:00.000Z",
      "createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
      "source": "api",
      "via": null,
      "note": ""
    },
    "publication": {
      "agentId": "Ag6bV8nM1qW3eR5t",
      "publication": { "versionId": "v9", "number": 9 },
      "last": {
        "publicationId": "p6",
        "action": "publish",
        "versionId": "v9",
        "previousVersionId": "v8",
        "createdAt": "2026-11-12T17:20:00.000Z",
        "createdBy": { "kind": "api_key", "keyId": "Ak7Pz2Lm9Qx4Wc6e" },
        "source": "api",
        "via": null,
        "note": ""
      }
    }
  }
}

The same fields as Connect an escalation. If the escalation wasn't connected, changed is false and nothing is published.

Errors

Statusdetails.codeWhen
403FORBIDDENThe credential can't edit this agent
404AGENT_NOT_FOUNDThe agent doesn't exist in the workspace or was deleted
409DRAFT_PENDINGThe agent's draft has unpublished changes. Publish it first, or make the change in assistance.escalations of the draft and publish it with the rest
409COPY_INCOMPLETEThe agent is a copy whose files didn't finish connecting
409CONFLICTSomeone else changed the agent at the same time. Try again

The format and codes for the rest of the API are in Errors.

Notes