UpdateAiCallTask
Updates the configuration of a voice call task.
Operation description
Before you update the configuration of a voice call task, ensure that the task is stopped.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aiccs:UpdateAiCallTask |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskName |
string |
Yes |
The name of the task. The name must be unique within the same account. |
TestTask |
| VirtualNumber |
string |
No |
The service instance used for outbound calls. |
0537022***** |
| StartType |
string |
Yes |
The start mode. Valid values:
|
IMMEDIATE |
| MissCallRetry |
boolean |
No |
Specifies whether to enable retry. Valid values:
|
true |
| CallRetryReason |
array |
No |
The reasons for retrying failed calls. |
|
|
string |
No |
The specific retry reasons. Valid values:
|
CALL_REJECTED |
|
| CallRetryTimes |
integer |
No |
The number of retries. The maximum value is 3. |
2 |
| CallRetryInterval |
integer |
No |
The retry interval. Unit: minutes. The maximum value is 120. |
25 |
| CallTime |
array |
Yes |
The allowed call time. |
|
|
string |
No |
The allowed call time period. Format:
Note
|
{"startTime":"09:00:00","endTime":"10:00:00"} |
|
| CallableTime |
array |
No |
The list of allowed call time periods. Each element is represented as a JSON string that contains startTime and endTime. |
|
|
string |
No |
The allowed call time period, represented as a JSON string that contains startTime and endTime. |
{"startTime":"00:00:00","endTime":"23:59:00"} |
|
| CallDay |
array |
Yes |
The allowed call days. |
|
|
string |
No |
The allowed call days. Valid values:
Valid values:
|
MONDAY |
|
| TaskStartTime |
integer |
No |
The preset start time of the task. The value is a timestamp in milliseconds. This parameter is valid and required only when the StartType parameter is set to SCHEDULE. The task automatically starts at the specified time. |
1748923429000 |
| TaskId |
string |
Yes |
The ID of the task to be updated. |
1187************** |
| TaskCps |
integer |
Yes |
The task concurrency. The maximum value is 500. |
57 |
| PhoneType |
integer |
No |
The number type. This parameter is used when the creation source is engine creation. Valid values: 0: Alibaba Cloud number 1: customer-provided line |
0 |
| LineEncoding |
string |
No |
The line encoding. |
JILIANG_***_***_NET |
| LinePhoneNum |
string |
No |
The number of the customer-provided line. |
152****3120 |
| Source |
integer |
No |
The creation source. Valid values: 0: created by an agent 1: created by an engine |
Cannot be modified. Leave this parameter empty |
| CallExpireType |
integer |
No |
The validity period type for outbound calls. Valid values: 0: long-term validity 1: valid for a specified period after import 2: valid until a specified time |
0 |
| CallExpireMinutes |
integer |
No |
The expiration duration for outbound call details. Unit: minutes. |
10 |
| CallExpireDate |
string |
No |
The expiration date for outbound call details, which specifies the exact end time. Format: YYYY-MM-DD HH:mm:ss. |
2026-07-30 20:00:20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The detailed reasons for access denial. |
None |
| Message |
string |
The error message. This parameter is returned only when an exception occurs. |
Invalid parameter |
| RequestId |
string |
The request ID. |
FCD94A7F-316D-54D1-9BFC-814006CB1C34 |
| Data |
boolean |
The update result. Valid values:
|
true |
| Code |
string |
The status code. |
OK |
| Success |
boolean |
Indicates whether the API call is successful. Valid values:
|
false |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "Invalid parameter",
"RequestId": "FCD94A7F-316D-54D1-9BFC-814006CB1C34",
"Data": true,
"Code": "OK",
"Success": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.