ImportTaskNumberDatas
Imports callee data for a voice call task.
Operation description
-
You can call this operation to import callee data, or import callee data on the Call Task Management page by clicking Import Callee Data, downloading the template, and uploading the file.
-
This operation currently supports only the JSON data type for importing callee data.
-
Before calling this operation, make sure that you have a successfully created call task.
-
If you do not have a successfully created call task, 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 OSS file path. This parameter is optional. Note
API calls do not currently support the Excel data type. Therefore, uploading an OSS file path is currently unavailable. |
123dsdfsdfsdf.xlsx |
| TaskId |
string |
Yes |
The task ID. |
119181071278****** |
| PhoneNumberList |
array<object> |
No |
If DataType is set to JSON, upload data through this field. A maximum of 1000 records can be uploaded at a time. |
|
|
object |
No |
The data structure is as follows:
Note
View call variables on the Communication Agent Management > Details > Call Variable Configuration page.
Extension number description: For batch import, include the |
{ "calleeNumber": "0534556****", "calledPhoneNumber.extension": "12213", "outId": "CFC2F07E-F763-7C48-1A32-6EFFB6EA344E", "name": "Tom", "age": "18" } For an example of call variable configuration for an engine call task, see the description |
|
| DataType |
string |
Yes |
The data type. Valid values:
Valid values:
|
JSON |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The detailed reason why access was denied. |
None |
| Message |
string |
The description of the status code. |
OK |
| RequestId |
string |
The request ID. |
CFC2F07E-F763-7C48-1A32-6EFFB6EA344E |
| Data |
integer |
The import batch ID. |
123497836486****** |
| Code |
string |
The request status code. OK indicates that the request was successful. |
OK |
| Success |
boolean |
Indicates whether the call was successful. 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.