Update a channel

SDK platic.channels.update()

Change a channel name or its responding agent. Only the fields you send are modified. The new agent responds from the next message using its published version.

Example

await platic.channels.update("channel_123", { defaultAgentId: "agent_123" });

Path parameters

ParameterTypeDescriptionRequired
channelIdstringChannel id or its prefixedChannelId✓

Query parameters

ParameterTypeDescriptionRequired
workspacestringWorkspace ID. Required if your credential covers several workspaces; without it the answer is 400If the credential has several

Request body

Send at least one.

ParameterTypeDescriptionRequired
defaultAgentIdstring | nullThe agent that answers the channel. It must exist in the workspace. null leaves the channel without an agent—
namestringChannel name, 1 to 200 characters—
isConnectedbooleanfalse disconnects the channel, as disconnect a channel does. true answers 409 USE_CONNECTIONS: a channel is connected by requesting a connection—
{
  "defaultAgentId": "tVKljCHCNiebQdasHeit"
}

Response

{
  "status": "success",
  "message": "Channel updated successfully",
  "data": {
    "id": "104857362918475",
    "prefixedChannelId": "fb-104857362918475",
    "platform": "messenger",
    "channelType": "messenger",
    "isConnected": true,
    "status": "CONNECTED",
    "defaultAgentId": "tVKljCHCNiebQdasHeit",
    "name": "Acme Store",
    "displayPhoneNumber": null,
    "phoneNumber": null,
    "businessId": null,
    "wabaId": null,
    "kind": "messaging",
    "commentAutoReply": null,
    "creationDate": "2026-11-12T18:42:10.000Z",
    "lastUpdate": "2026-11-12T19:03:27.000Z",
    "health": {
      "state": "ok",
      "reason": null,
      "since": "2026-11-12T18:42:10.000Z"
    }
  }
}

data is the channel, with the fields of list channels.

With isConnected: false, message is Channel disconnected and data is the disconnected channel, with nextStep, as in disconnect a channel. If you also send defaultAgentId or name, they are saved before disconnecting.

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTYou sent no field, or one is not valid. details.issues says which
404CHANNEL_NOT_FOUNDThe channel does not exist in this workspace, or you removed it
404—The defaultAgentId agent does not exist in this workspace. details only has the message
409USE_CONNECTIONSYou sent isConnected: true. details.nextStep says how to connect it
409MANAGE_IN_PLATICAYou sent isConnected: false to a mailbox: it is managed in Platica. The link is in details.manageUrl. The other fields you sent are saved

With isConnected: false the errors of disconnect a channel apply too.

Notes

  • To remove the channel from the workspace, use delete a channel.
  • On a web chat, the agent, the name, and everything else are changed with update a web chat.
  • To recover a channel that stopped working, check health and request a connection of the same type.
  • Needs a workspace API key, or an OAuth token with write access to Integrations and the platica:write scope.