narodel | 2020-01-24 09:07:45 UTC | #1
Hi,
I'm pretty bad at programming, but I'm trying to update the bullseye ring of a user via PATCH (Routing > queues)" Update the ring number OR joined status for a User in a Queue"
However, when I fill in the queueId and the memberId, and change "ringNumber": 4, it doesn't work. What am I doing wrong?
Is the memberId the same as the userId?
Becky_Powell | 2020-01-24 15:30:14 UTC | #2
Can you clarify what you mean by, "it doesn't work"? What is the result of your update attempt? What response code do you receive?
narodel | 2020-01-28 08:41:07 UTC | #3
Hi, sorry for the slow reply.
At first I got 400 Bad Request: "message": "Value [] is not valid for field type [Status]. Allowable values are: OFFQUEUE, IDLE, INTERACTING, NOTRESPONDING, COMMUNICATING".
Which I find a weird error, because it says this is optional and I don't see why I need to change this.
However, if I set the status to IDLE, it gives me 202 Accepted, but nothing changes.
I filled in the following:
and "ringNumber": 4, "joined": true, "memberBy": "", "routingStatus": { "userId": "", "status": "IDLE", "startTime": ""
anon28885283 | 2020-01-28 09:14:16 UTC | #4
For your use case, just remove the entire user property.
narodel | 2020-01-28 10:08:03 UTC | #5
Edit: it works! Thanks a lot.
By the way, is there a way to do this for multiple queues at the same time?
anon28885283 | 2020-01-29 03:22:16 UTC | #6
You're welcome.
No you have to call the API on each queue that you want to update.
system | 2020-02-29 03:22:17 UTC | #7
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: 6964