tencent cloud

Feedback

CreateStaff

Last updated: 2024-03-27 16:14:05

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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)

3. Output Parameters

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.

4. Example

Example1 Creating Customer Service

This example shows you how to create customer service.

Input Example

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
}

Output Example

{
    "Response": {
        "RequestId": "6bb56a09-2787-40bc-80c5-dc6dab783eff",
        "ErrorStaffList": null
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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 The parameter value is invalid.
InvalidParameterValue.InstanceNotExist The instance does not exist.
LimitExceeded Exceeded quota limit.