Assign or unassign a conversation
assign_conversationAssign or unassign a conversation
Assigns the conversation to a teammate, or unassigns it with "assigned_to": null. The
teammate must be able to open the agent: a user_id from listAgentMembers with
can_open_agent: true (422 assignee_not_allowed otherwise). The conversation's lead is
assigned with it. Mojeeb records the assignment as made by the person who created the key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional: why, kept with the assignment in Mojeeb's records. Can't contain angle brackets. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| assigned_to | Yes | The teammate to assign it to: a `user_id` from `listAgentMembers` whose `can_open_agent` is true. `null` unassigns it. Required, so an empty body never unassigns by accident. | |
| conversation_id | Yes | One of the agent's conversations. Another agent's conversation, or a deleted one, is `404 not_found`. |