joandino | 2021-12-02 20:49:41 UTC | #1
Hi, I have a problem with patching the ring number of many users in a queue or queues.
I have a list of +100 users and I'm trying to update all the user information including his/her ring number of the queue/s they got assigned, the first user updates correctly but when the second user is in process, and try to update the ring number it says.
'Invalid ring number 1 specified for user 74388a77-b1a2-4acd-81cc-0bbc22d33335. User is already on that ring.'
And the user is recently created so it doesn't have any ring number. It happens every two users, if I run the code (in Node) again it will go with the other two next users and stop in the second one.
Jerome.Saint-Marc | 2021-12-03 07:48:22 UTC | #2
Hello,
When you have a Queue configured for Bullseye Routing, members added to the queue will be assigned by default to ring 1.
If you try to update a user who is already in the requested ring, you'll get such a message (400 Bad Request). I mean that if the user is already in ring 1, and you try to assign him to ring 1; or if your user is already in ring 2 and you try to assign him to ring 2; ....
You'll also get a 400 Bad Request if you try to assign the user to a ring which doesn't exist (I mean you defined 3 rings and you try to assign the user to ring 4) or if you try to use a ring number which is not between 1 and 6.
Regards,
joandino | 2021-12-03 18:03:49 UTC | #3
I understand that but the users already created, the queue is well configured because with the first user works correctly but comes the second user and throws an error like it can't make a bulk update of ring numbers.
Jerome.Saint-Marc | 2021-12-03 18:24:47 UTC | #4
I am not sure I understand. What bulk request are you using? Or do you mean that you are doing a "loop" to update 100 users (but one request per user)?
As said, if the user is already in the ringNumber you request, the update generates an error. If you think something is not working as expected, you can open a ticket with Genesys Cloud Customer Care.
Also, you can always get the members of the queue first using GET /api/v2/routing/queues/{queueId}/members and only request to update the ringNumber of the users who have a different value than the one you want for them.
Regards,
system | 2022-01-03 18:25:20 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 12826