ImportTaskNumberDatas
Imports callee data for a call task.
Operation description
-
You can call this operation to import callee data. You can also import callee data by clicking Import Callee Data on the Call Task Management page, downloading the template, and uploading a file.
-
This operation currently supports only the JSON data type for importing callee data.
-
Before calling this operation, make sure that a call task has been created.
-
If you do not have a created call task, you can create one on the Call Task Management page or by calling the CreateAiCallTask operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OssFileName |
string |
No |
The Object Storage Service (OSS) file path. This parameter is optional. Note
API calls do not currently support the Excel data type. Therefore, you cannot specify an OSS file path. |
123dsdfsdfsdf.xlsx |
| TaskId |
string |
Yes |
The task ID. |
119181071278****** |
| PhoneNumberList |
array<object> |
No |
If DataType is set to JSON, you must use this field to upload data. You can upload a maximum of 1,000 entries at a time. |
|
|
object |
No |
The data structure is as follows:
Note
You can view call variables on the Call Variable Settings page by navigating to Communication Agent Management > Details.
Extension number description: For batch import, include the |
{ "calleeNumber": "0534556****", "calledPhoneNumber.extension": "12213", "outId": "CFC2F07E-F763-7C48-1A32-6EFFB6EA344E", "name": "Tom", "age": "18" } For the example of call variable configuration for an engine call task, see the description |
|
| DataType |
string |
Yes |
The data type. Valid values:
Valid values:
|
JSON |
| EncryptionType |
integer |
No |
The encryption method. Valid values: 0: no encryption. 1: MD5. 2: SHA256. 3: SM3. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The detailed reason for the access denial. |
None |
| Message |
string |
The status code description. |
OK |
| RequestId |
string |
The request ID. |
CFC2F07E-F763-7C48-1A32-6EFFB6EA344E |
| Data |
integer |
The import batch ID. |
123497836486****** |
| Code |
string |
The request status code. If OK is returned, the request is successful. |
OK |
| Success |
boolean |
Indicates whether the operation was called successfully. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "OK",
"RequestId": "CFC2F07E-F763-7C48-1A32-6EFFB6EA344E",
"Data": 0,
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.