Why is this setting causing 400 on Genesyscloud_routing_queue? We are managing fifteen BYOC trunks across APAC and have recently attempted to automate the provisioning of routing queues that handle specific SIP header-based failover logic. The environment is Singapore region, Genesys Cloud v2 API.
We are using the PUT /api/v2/architect/flows endpoint to deploy an IVR flow that inspects incoming SIP headers from our primary carrier. If the header indicates a degraded quality score, the flow attempts to transfer the call to a secondary queue configured for high-priority routing. However, when we try to update the routing queue settings via the API to enable this specific transfer logic, we receive a 400 Bad Request error.
The error message is generic: “Invalid request body.” We have verified the queue ID exists and is active. The issue seems to stem from the outbound_caller_id or wrap_up_codes configuration within the queue object when nested inside the flow’s transfer action. Specifically, we suspect the API rejects unverified domains in BYOC contexts if the caller ID mapping isn’t fully synchronized before the flow deployment.
Here is the JSON payload we are sending for the queue update:
{
"name": "High-Priority-Failover-Queue",
"description": "Queue for degraded SIP quality failover",
"outbound_caller_id": {
"type": "phone",
"phone_number": "+6591234567",
"use_calling_party_number": false
},
"skills": ["voip_support", "billing"],
"enabled": true,
"wrap_up_codes": [
{
"id": "abc123",
"name": "Call Transferred"
}
]
}
The phone number is verified in the BYOC trunk configuration. We have waited for the domain resource to be fully active. Has anyone encountered similar issues where the Architect flow deployment fails due to queue configuration constraints in a multi-region BYOC setup? We need to ensure the failover logic is robust without manual intervention.