Hanzo AI
OpenapiChannel

Replace agent

Binds agents to the caller org's channel and answers the bindings as GET would. It requires ORG ADMIN.

PUT /v1/channel/agent

Addresshttps://api.hanzo.ai/v1/channel/agent
MethodPUT
Operationput_channel_agent
AuthAuthorization: Bearer $HANZO_API_KEY

Binds agents to the caller org's channel and answers the bindings as GET would. It requires ORG ADMIN. The agent is named by its ref — the name an org gave it at POST /v1/agent, or a built-in such as dev, des or vi.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
channelbodystringChannel is the transport to edit.
defaultbodystringDefault sets the agent for rooms with no binding of their own; "hanzo" restores the built-in.
roomsbodyobjectRooms binds platform room ids to agents; rooms not named are left alone.
rooms.*bodystring
unbindbodystring[]Unbind removes the bindings of these rooms, so they fall back to Default.

Response

StatusBodyMeaning
200channel.channelAgentsok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
channelbodystringChannel is the transport these bindings are for.
defaultbodystringDefault is the agent that answers any room without a binding of its own; "hanzo" when the org has never set one.
roomsbodyobjectRooms maps a platform room id to the agent that answers there.
rooms.*bodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo channel agent replace

Channel API · All Hanzo APIs · Interactive reference

How is this guide?

On this page