Get list of wrap-up codes and assigned queues

Hi there,
I wonder if someone could help me with a query to get a list of wrap-up codes and the queues they are assigned too.
I have checked the api's but could only find an api for a complete list or per queue. But not combined.
Thxs.

GET /api/v2/routing/queues/{queueId}/wrapupcodes

Hi Eos,
Yes, I know this one. But this is per queue.

What I am after is quickly have a list of all wrap-up codes and if they are still assigned to a queue.
This because more people can create wrap-up codes and assign to queues. But when queues are deleted, wrap-up codes remain.
Of course it can be that in the meantime a wrap-up code is assigned to multiple queues, but it would be nice if that can be requested in a single api call or so.

There is no reverse API to find queues by wrap instead of wrap by queues and no API that just dumps everything that I am aware of.

Based on how most everything else works, if you wanted to do periodic cleanup you'd have to iterate all queues to see what's still in use and compare that to the population of what's available to determine if/how-many-times each wrap is used and weed out the zeroes.

Nothing related to this has been asked for in the Ideas Portal that I can see so you could try your luck there at getting a simpler way of doing it.

This is correct. One of our principles in R&D for the Platform API is to focus its design on the fact that it's the interface to a platform and not a backend for a specific application (like the UI Genesys also provides). This platform-first mentality helps ensure that both Genesys R&D and our customers have equal access to the platform's interfaces to build their applications on top of Genesys Cloud. One of the ways this manifests is that the API endpoints are often designed around the way the data is stored instead of being designed for consumption by a specific use case in a specific application. This means that manipulation of the data structure for display or processing is typically considered a client-side task and will not be performed by the API. This does put an increased burden on the API consumer, but it also results in a cleaner API definition that more precisely represents the capabilities of the platform. It's both more maintainable and more consumable that way.

That said, there definitely are exceptions to that design choice and there are instances of data inversion as an API endpoint. You can request this and share your use case on the Ideas portal Eos linked to help Product Management make evidence-based decisions on why features should be prioritized.

@Rolph_Lieverse I have been looking for the same!
Also very similar is an API that would identify all users assigned to a "Skill" I have seen a lot of chatter in the Community for this.

One of us just needs to make the time to Enter this into Ideas

Would it be possible to retrieve the information I need through the 'code editor' part of the developer tools?
If so, is there someone willing to provide the code to run there?
I'm afraid I have no knowledge on how to write this.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.