Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The GET /skills/{skillId}/users endpoint gets a list of users with the skill matching the skill ID provided.

...

Authorization scopes supported:

ScopeAccess granted
users:readEntire endpoint
users:writeEntire endpoint

Parameters

The endpoint accepts the following path parameter:

...

Type

Required

Example

StringTrue8e22b1fe-d2ea-403d-8c03-50eb21188e79

The skill ID of the required skill.

Requests

Request all users linked to a skill

Code Block
languagepowershell
themeMidnight
curl -L -X GET "https://***.api.newvoicemedia.com/useradmin/skills/8e22b1fe-d2ea-403d-8c03-50eb21188e79/users" \
-H "Accept: application/vnd.newvoicemedia.v4+json" \
-H "Authorization: Bearer <ACCESS_TOKEN>"

Responses

Responses contain the requested users.

Successful response

Successful requests return a 200 Success code and the requested users.

Example response

Code Block
languagejs
themeMidnight
{
  "meta": {
      "page": 1,
      "count": 5,
      "pageCount": 1,
      "totalCount": 5
  },
  "users": [
    {
      "userId": "c7705a71-dac7-411f-8a7a-d1c6473334cc",
      "agentDisplayId": "5896",
      "name": "User1",
      "agentSkillLevel": 5
    },
    {
      "userId": "993e6114-ea84-250b-eb68-df4a4a7808bd",
      "agentDisplayId": "33003",
      "name": "User2",
      "agentSkillLevel": 5
    },
    {
      "userId": "8e25ac09-7620-f24f-a19a-3cdb5054a869",
      "agentDisplayId": "86001",
      "name": "User3",
      "agentSkillLevel": 5
    }
  ],
}

where:

  • users.
    • userId. The unique ID of the user that has the skill.
    • agentDisplayId. The ID of the agent who has the skill.
    • name. The name of the user who has the skill.
    • agentSkillLevel. The agent’s skill level.

Insert excerpt
_ExcerptRunInPostman
_ExcerptRunInPostman
nopaneltrue