Hanzo AI
OpenapiTeam

Replace rooms

States what a room is for: its lifecycle intent, and what it is about. It answers the room as it now stands.

PUT /v1/team/rooms/{id}

Addresshttps://api.hanzo.ai/v1/team/rooms/{id}
MethodPUT
Operationput_team_rooms_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

States what a room is for: its lifecycle intent, and what it is about. It answers the room as it now stands.

The write is a platform MIXIN on the room document, applied through the SAME applyTx path the Team client's own writes take and broadcast to every connected client — so a room bound here updates live in an open workspace rather than on the next reload.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the room to bind, from the path.
bindingsbodystring[]Bindings REPLACES what the room is about, wholly.
idbodystringID is the room to bind, from the path.
lifebodystringLife sets the lifecycle intent: "standing" or "bound". Any other value is refused rather than stored, so a reader never has to interpret a third one.
workspacebodystringWorkspace names the workspace holding the room.

Response

StatusBodyMeaning
200teamRoomok

200 body — 10 fields.

FieldInTypeAlwaysDescription
archivedbodybooleanArchived reports that the room has been closed.
bindingsbodystring[]Bindings are what this room is ABOUT, each a "<kind>:<ref>" string — "project:acme/web", "repo:hanzoai/cloud", "issue:1010".
directbodybooleanDirect reports that this is a room between people rather than a named room.
idbodystringID is the room document's own id, and the value the bind op addresses.
lifebodystringLife is the room's lifecycle INTENT — "standing" or "bound" (HIP-0523 §2).
membersbodystring[]Members are the account uuids in the room, agents included: an agent projects as a workspace member under a uuid derived from its id, so a caller comparing…
namebodystringName is what a person sees in a sidebar.
privatebodybooleanPrivate reports that the room is restricted to its members.
topicbodystringTopic is the room's own one-line subject, as the Team client sets it.
workspacebodystringWorkspace is the workspace uuid holding this room.

Failure carries the platform error shape — see Errors.

Examples

hanzo team rooms set <id>

Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page