| Parameters | Description | Required | Required |
|---|---|---|---|
| keyId | primary key id list | Yes | Integer |
| empNo | Job number, 1-12 digits only | Yes | String |
| password | Password | No | String |
| name | Team leader name character limit 4-32 characters, team leader name cannot be repeated | Yes | String |
| petName | Team leader nickname character limit 0-20 characters | No | String |
| voiceGroupIdList | Agent group (agent group query returns voiceGroupId) | Yes | List<Integer> |
Request URL:
https://api.itniotech.com/v3/cc/teamleader/update
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"keyId": 5000018,
"petName": null,
"name": "1231231231",
"empNo": "753874",
"voiceGroupIdList": [
1000018
],
"password": "fWcsQ6aw"
}
| Parameters | Description | Required |
|---|---|---|
| status | status code,0 is successful. For other failures, please refer to the interface response code | String |
| reason | Failure reason description | String |
| data | This method returns empty | String |
{
"status": "0",
"reason": "success",
"data": null
}
| status | Description |
|---|---|
| 0 | Success |
| -1 | Authentication error |
| -2 | Authentication error |
| -16 | Timestamp expires |
| -18 | Port program unusual |
| -20 | Data existing |
| -22 | Parameter exception |
| -23 | Data caps |
| -33 | The name already exists, please re-enter! |
| -34 | This job number has been duplicated, please enter another job number. |