Skip to main content
PUT
Update per-channel conditional behavior

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required
assignment
string<uuid>
required

Body

application/json

Send only changed fields. See the schema description for the mode matrix and option sources.

Per-channel settings payload. Mode decides which conditional sections are available. autopilot: AI owns the conversation; send ai_agent, knowledge_gap, callback, overflow, escalation, and omit working_hours because AI is 24/7. copilot: AI assists the human team; send working_hours without after_hours, because outside hours AI takes over alone. human_first: humans answer first; omit knowledge_gap, and when working_hours.enabled is true set after_hours to voicemail, closed, or an agent uuid. callback, overflow, and escalation are valid for all three modes. Source ids must come from GET /api/v1/workspace/queue/options: agents[].uuid, users[].email, target_queues[].uuid, and knowledge_gap_queues[].uuid.

uuid
string<uuid>
name
string
Example:

"Enterprise Support"

color
enum<string>
Available options:
q-support,
q-sales,
q-returns,
q-technical
is_active
boolean
sla_seconds
integer

Per-channel first-response target. The UI normally uses 10..180, while the server accepts 5..600.

Required range: 5 <= x <= 600
channels
object[]
members
object[]

Human agents of the queue

routings
object[]
created_at
string<date-time>
updated_at
string<date-time>
mode
enum<string>

autopilot = AI answers alone; copilot = AI assists humans during working hours; human_first = humans answer first and AI is fallback.

Available options:
autopilot,
copilot,
human_first
ai_agent
string<uuid> | null

AI agent uuid from options.agents[].uuid. Send null to clear.

knowledge_gap
object

Visible and writable only for autopilot and copilot. Omit for human_first.

callback
object

Offer or create a callback instead of keeping the customer waiting. Valid for all modes.

overflow
object

Move the conversation when capacity conditions are hit. Valid for all modes.

escalation
object

Escalate the conversation for service or sentiment reasons. Valid for all modes.

working_hours
object

Use for copilot and human_first. Omit for autopilot. For copilot, do not send after_hours. For human_first, after_hours must be voicemail, closed, or an agent uuid.

Response

200

Assignment updated