Domain name for API request: ccc.tencentcloudapi.com.
This API is used to create the customer service account.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: CreateStaff. |
Version | Yes | String | Common Params. The value used for this API: 2020-02-10. |
Region | No | String | Common Params. This parameter is not required for this API. |
SdkAppId | Yes | Integer | Application ID (required) can be found at https://console.tencentcloud.com/ccc. |
Staffs.N | Yes | Array of SeatUserInfo | Customer information, no more than 10. |
SendPassword | No | Boolean | Whether to send a password mail or not (the default is true) |
Parameter Name | Type | Description |
---|---|---|
ErrorStaffList | Array of ErrStaffItem | Error agent list and error information. Note: This field may return null, indicating that no valid value could be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to create customer service.
POST / HTTP/1.1
Host: ccc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateStaff
<Common request parameters>
{
"Staffs": [
{
"Phone": "Contact phone",
"Mail": "Contact person email",
"StaffNumber": "001",
"Name": "Xiao Jun"
}
],
"SdkAppId": 1400000000
}
{
"Response": {
"RequestId": "6bb56a09-2787-40bc-80c5-dc6dab783eff",
"ErrorStaffList": null
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.DuplicatedAccount | Duplicate account. |
InternalError | An internal error occurs. |
InvalidParameter | Parameter error. |
InvalidParameter.InstanceNotExist | The instance does not exist. |
InvalidParameterValue | parameter value is invalid. |
InvalidParameterValue.InstanceNotExist | The instance does not exist. |
LimitExceeded | Exceeded quota limit. |
Was this page helpful?