ListSkillLevelsOfUser
You can use this API to retrieve the list of skill levels for skill groups associated with a specified agent under a specified instance. You can also use this API to query the list of skill groups that the agent can be associated with but is not currently associated with.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
ccc-test |
| UserId |
string |
No |
Agent ID. |
agent@ccc-test |
| IsMember |
boolean |
No |
Indicates whether to associate with the specified agent. If true, retrieves the skill levels of skill groups associated with the agent. If false, retrieves the list of skill groups that the agent can be associated with but is not currently associated with. The default value is true. |
true |
| PageNumber |
integer |
Yes |
Page number, ranging from 1 to 100. |
1 |
| PageSize |
integer |
Yes |
Page size, ranging from 1 to 100. |
10 |
| SearchPattern |
string |
No |
Perform fuzzy matching based on skill group name or display name. This parameter is optional and defaults to empty, which means no filtering is applied. |
skillgroup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Response code. |
OK |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
| Message |
string |
Response message. |
无 |
| RequestId |
string |
Request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| Data |
object |
Data. |
|
| PageNumber |
integer |
Page number, ranging from 1 to 100. |
1 |
| PageSize |
integer |
Page size, ranging from 1 to 100. |
10 |
| TotalCount |
integer |
Total count. |
10 |
| List |
array<object> |
List of skill group levels. |
|
|
object |
|||
| SkillLevel |
string |
Skill level, with values ranging from 1 to 10. A smaller numeric value indicates stronger business capability and the ability to handle more calls per unit time. |
5 |
| SkillGroupId |
string |
Skill group ID. |
skillgroup@ccc-test |
| SkillGroupName |
string |
Skill group name. |
skillgroup |
| MediaType |
string |
Media type. The default value is AUDIO. Other optional values include CHAT and VIDEO. |
VIDEO |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 10,
"List": [
{
"SkillLevel": "5",
"SkillGroupId": "skillgroup@ccc-test",
"SkillGroupName": "skillgroup",
"MediaType": "VIDEO"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | |
| 400 | Parameter.Null | The parameter %s may not be null. | |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | |
| 404 | NotExists.UserId | The user %s does not exist in instance %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.