ListUserLevelsOfSkillGroup
Queries the skill levels of agents in a specified skill group of an instance. You can also use this operation to query agents that can be associated with the skill group but are not currently associated with it.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| SkillGroupId |
string |
Yes |
The skill group ID. |
skillgroup@ccc-test |
| IsMember |
boolean |
Yes |
Specifies whether the agent is associated with the specified skill group. If you set this parameter to true, the skill levels of agents associated with the skill group are queried. If you set this parameter to false, the list of agents that can be associated with but are not associated with the skill group is queried. Default value: true. |
true |
| PageNumber |
integer |
Yes |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Valid values: 1 to 100. |
10 |
| SearchPattern |
string |
No |
Performs a fuzzy match based on the logon name or display name of the agent. This parameter is optional. If you leave this parameter empty, no filtering is applied. |
Test agent |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| Data |
object |
The data. |
|
| PageNumber |
integer |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 100. |
10 |
| TotalCount |
integer |
The total number of entries. |
1 |
| List |
array<object> |
The list of skill levels. |
|
|
object |
The skill level details. |
||
| DisplayName |
string |
The display name of the agent. |
Agent Wang |
| SkillLevel |
integer |
The skill level of the agent. |
5 |
| LoginName |
string |
The logon name of the agent. |
agent |
| UserId |
string |
The agent ID. |
agent@ccc-test |
| SkillGroupId |
string |
The skill group ID. |
skillgroup@ccc-test |
| SkillGroupName |
string |
The skill group name. |
skillgroup |
| RoleName |
string |
The role name. Valid values:
|
Admin |
| RoleId |
string |
The role ID. Format: role@instance ID. |
Admin@ccc-test |
| RamId |
string |
The Resource Access Management (RAM) users. |
28036411123456**** |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"List": [
{
"DisplayName": "坐席小王",
"SkillLevel": 5,
"LoginName": "agent",
"UserId": "agent@ccc-test",
"SkillGroupId": "skillgroup@ccc-test",
"SkillGroupName": "skillgroup",
"RoleName": "Admin",
"RoleId": "Admin@ccc-test",
"RamId": "28036411123456****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Maximum | The parameter %s must be less than or equal to %s. | The parameter must be less than or equal to the maximum value defined by the system. |
| 400 | Parameter.Minimum | The parameter %s must be greater than or equal to %s. | The parameter must be greater than or equal to the minimum value defined by the system. |
| 400 | Parameter.Empty | The parameter %s may not be null or empty. | The parameter cannot be null or an empty string. |
| 400 | Parameter.Null | The parameter %s may not be null. | The parameter cannot be null. |
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | The parameter cannot be null or a string that contains whitespace characters. |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
| 404 | NotExists.SkillGroupId | The skill group ID %s does not exist in instance %s. | The specified skill group ID does not exist in the Cloud Contact Center instance. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.