Creating a Single Agent Account (agentAccount/create)
Scenario
Create a single agent account. The skills parameter is related to the skill queue. The skill queue information can be obtained by invoking the interface for querying skill queues.
Method
POST
URI
https://Domain name/apiaccess/rest/cc-management/v1/agentAccount/create. For example, the domain name is service.besclouds.com.
Request Description
No. |
Name |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
x-app-key |
String |
No |
App key field, which is the user ID. Contact the operation personnel to obtain the app key. |
2 |
Authorization |
String |
Yes |
Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.) |
No. |
Name |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
requestParam |
Object |
Yes |
Request parameter object. |
1.1 |
userAccount |
String |
Yes |
Agent account. The value is a string of 6 to 50 characters and can contain only letters, digits, and special characters. Special characters include the following: @.-_ |
1.2 |
userName |
String |
Yes |
Agent name. The value contains a maximum of 20 characters and does not contain the following special characters: "[]'&()=;<>, |
1.3 |
password |
String |
Yes |
Password. The value is a string of eight characters (default password rule group). By default, four types of characters are required: uppercase letters, lowercase letters, digits, and special characters (~`!@#$%^*()-+_=\¦,./<>?;':"[]{}\&). The password validity period is 90 days. Change the password within 90 days. |
1.4 |
|
String |
Yes |
Email address (complying with RFC 2882). The value of localPart contains a maximum of 64 characters, and the value of domainPart contains a maximum of 255 characters. The first part of domainPart dot contains a maximum of 63 characters. |
1.5 |
agentType |
Integer |
Yes |
Agent type. 4: audio agent 11: video agent 5: multimedia agent 99: versatile agent |
1.6 |
ccRoleId |
Integer |
Yes |
Agent role ID. 2: agent 3: inspector 4: outbound call agent |
1.7 |
skills |
Array [Object] |
No |
Skill parameter group. The skill queue type must be the same as the value of agenttype. |
1.7.1 |
skillId |
Integer |
No |
Skill queue ID, which is obtained using the querySkills interface. |
1.7.2 |
agentWeight |
Integer |
No |
Agent weight. A larger weight indicates a higher priority. The minimum value is 1. |
1.7.3 |
skillWeight |
Integer |
No |
Skill queue weight. The minimum value is 1. |
1.8 |
phone |
String |
No |
Phone number, which is optional and can contain a maximum of 25 characters. |
Response Description
- Status code: 200
Table 3 Response body parameters No.
Name
Type
Mandatory or Not
Description
1
schema
Object
Yes
Successful request.
1.1
resultCode
String
Yes
Character string. The options are 0 (success) and 1 (failure).
1.2
resultMessage
String
Yes
Related message.
1.3
workNo
Integer
No
Agent ID.
- Status code: 400
Incorrect request. Check the request path and parameters.
- Status code: 401
Unauthorized operation.
1. Check whether you have purchased related services.
2. Contact customer service to check the status of your account.
- Status code: 404
The requested content is not found. Check the request path.
- Status code: 500
Business failure. Check the values of parameters in the request.
Error Codes
None
Example
- Scenario: Create an agent account.
URL: See the document.
x-app-key: XXXXXXXXXXXXXXXXXXXXXXX Content-Type: application/json Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXX
Request parameters:
{ "userAccount":"test123456", "userName":"test111", "password":"Te****34", "email":"t**@****.com", "agentType":11, "ccRoleId":2, "skills":[{ "skillId":3, "agentWeight":1, "skillWeight":1 }, { "skillId":2, "agentWeight":1, "skillWeight":2 }] }
Response parameters:
{ "resultCode": "0", "resultMessage": "create agent account success", "workNo": 108 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot