ℹ️ You can find assign to a user,assign to an agent, orunassignProvided in the curl.
| Sent | Result |
|---|---|
assignedUserId only | Assigns to that user |
assignedAiAgentId only | Assigns to that agent |
| Both | 400 — BusinessException("CN-01"): "Cannot assign to both user and AI agent at the same time" |
Neither (empty body {}) | Unassigns the conversation entirely |
200 OK with an empty body — there's no Ok(result), just return Ok();. If you need to see the updated assignee, call GET .../service-account/{conversationId} afterward.curl --location --globoff 'https://api.voxa.sa/v2/conversations/service-account/{{conversationId}}/assign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assignedUserId": "USER_ID"
}'{}