Nuno_Paulo | 2025-01-09 18:29:58 UTC | #1
Hi team,
I'm creating queues through post /api/v2/routing/queues and using this body:
{ "name": "QueueName", "division": { "id": "e738b4fd-a548....", "name": "Division" }, "emailInQueueFlow": { "id": "30792656-a4......", "name": "InqueueEmail" }, "cannedResponseLibraries": { "libraryIds": [ "5bc83c2c-0708-4..." ], "mode": "SelectedOnly", "outboundEmailAddress": { "domain": { "id": "domain.mypurecloud.region", "name": "domain.mypurecloud.region" }, "route": { "fromName": "CCare", "pattern": "ccare", "name": "ccare", "fromEmail": "ccare@domain.mypurecloud.region" } } }
I received a 200 OK but when check the queue, is created without define the outbound email address.
Any idea what is missing to define it correctly?
Best regards
vpirat | 2025-01-10 22:52:54 UTC | #2
Hi,
You need to reference the route with its Id that is associated with the queue as an outbound email. Example:
POST /api/v2/routing/queues
{
"name": "queue_with_email",
"division": {
"id": "<id>"
},
"outboundEmailAddress": {
"domain": {
"id": "<domain_name>"
},
"route": {
"allowMultipleActions": false,
"autoBcc": [],
"historyInclusion": "Optional",
"id": "23ada625-2022-4d63-aacd-ff23e37107a8", # <==== Don't omit this
"priority": 0
}
}
}
The email to associate to the queue must exist prior to the queue.
Hope this helps,
Regards, V.P.
system | 2025-02-09 22:53:33 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 31122