CreateCallTask
Uses a service instance to create a text-to-speech (TTS) task, a voice notification task, or a voice verification code task for multiple called numbers.
Operation description
You can create up to 1,000 voice notifications for each task.
QPS limits
You can call this operation up to 100 times per second per account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dyvms:CreateCallTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskName |
string |
No |
The task name. |
语音通知 |
| BizType |
string |
No |
The type of the task template. Valid values:
|
VMS_VOICE_CODE |
| TemplateCode |
string |
No |
The template ID. |
TTS_2122**** |
| TemplateName |
string |
No |
The template name. |
语音通知模板 |
| ResourceType |
string |
No |
The type of the calling number. Set the value to LIST. |
LIST |
| Resource |
string |
No |
The calling number. Only virtual numbers are supported. |
05516214**** |
| DataType |
string |
No |
The type of called numbers. Valid values:
|
JSON |
| Data |
string |
No |
The called numbers.
|
{ "paramNames":["name",,"key"], "calleeList":[ { "callee":"1310000****", "params":["张三","淘宝订单"] }, { "callee":"1320000****", "params":["李四","天猫订单"] } ] } |
| FireTime |
string |
No |
This parameter is unavailable. |
1 |
| StopTime |
string |
No |
This parameter is unavailable. |
1 |
| ScheduleType |
string |
No |
This parameter is unavailable. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The response code. |
OK |
| Data |
integer |
The task ID. |
18390** |
| RequestId |
string |
The request ID. |
ED815433-724A-4357-9991-A54AD2FF09FD |
Examples
Success response
JSON format
{
"Code": "OK",
"Data": 0,
"RequestId": "ED815433-724A-4357-9991-A54AD2FF09FD"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters | The parameter is invalid. | The specified parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.