Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  PureCloud API

    Posted 04-15-2020 02:05
    No replies, thread closed.
    Hi,
    I am trying to pull all the users who have specific routing skill added to them. Is there a direct API call in purecloud that I can make use of? I tried using GET /api/v2/users HTTP/1.1 . This return all the users with their skill. The skills array returned seems to be empty even though the user have valid skill. 
    #Unsure/Other

    ------------------------------
    Vignesh Kumar
    Genesys
    ------------------------------


  • 2.  RE: PureCloud API

    Posted 04-15-2020 10:40
    No replies, thread closed.
    Can you show an example of a (sanitized) result from your query which shows a Skills array?

    The api/v2/users/search API only lloks for Profile skills, not Routing skills, so I'm wondering if you are looking at the Profile skills array and thinking it is supposed to show the Routing skills?

    The only API calls I am aware of that look at routingskills are the ones that pull back the routing skills for a specific user, not the other way around.

    ------------------------------
    George Ganahl GCP (Genesys Cloud), ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 3.  RE: PureCloud API

    Posted 04-16-2020 12:51
    No replies, thread closed.
    I'm not aware of a single request that you can make and filter by routing skill.  I believe you'll have to use GET /api/v2/users?expand=skills so that the skills array is populated.  You'll then have to spin through the returned list of users and filter out the ones without the skills you are looking for.

    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 4.  RE: PureCloud API

    Posted 04-17-2020 02:21
    No replies, thread closed.
    Jim, Thanks for your response. I will move the approach you suggested.

    ------------------------------
    Vignesh Kumar
    Genesys
    ------------------------------



  • 5.  RE: PureCloud API

    Posted 04-17-2020 10:38
    No replies, thread closed.
    Here is what I see with that ?expand=skills for a user who has ACD Skills assigned:

                "skills": [
                    {
                        "id": "0ec27965-8d94-4d36-a193-670391d3b0d3",
                        "name": "Analytics-WFM",
                        "proficiency": 2.0,
                        "state": "active",
                        "skillUri": "/api/v2/routing/skills/0ec27965-8d94-4d36-a193-670391d3b0d3",
                        "selfUri": "/api/v2/users/9a260857-ede7-489d-9dac-f8174bf09a38/routingskills/0ec27965-8d94-4d36-a193-670391d3b0d3"
                    },
                    {
                        "id": "6e2adf61-108c-4d2c-b059-3ffb64397ca7",
                        "name": "API-Integrations",
                        "proficiency": 5.0,
                        "state": "active",
                        "skillUri": "/api/v2/routing/skills/6e2adf61-108c-4d2c-b059-3ffb64397ca7",
                        "selfUri": "/api/v2/users/9a260857-ede7-489d-9dac-f8174bf09a38/routingskills/6e2adf61-108c-4d2c-b059-3ffb64397ca7"
                    }
    So, hopefully you can make use of that.

    ------------------------------
    George Ganahl GCP (Genesys Cloud), ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------



  • 6.  RE: PureCloud API

    Posted 04-20-2020 00:58
    No replies, thread closed.
    Thanks George. I will check on this.

    ------------------------------
    Vignesh Kumar
    Genesys
    ------------------------------