UpdateAiCallTask

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: immediate start.

  • SCHEDULE: scheduled start.

IMMEDIATE

MissCallRetry

boolean

No

Specifies whether to enable retry. Valid values:

  • true: enabled.

  • false (default): disabled.

true

CallRetryReason

array

No

The reasons for retrying failed calls.

string

No

The specific retry reasons. Valid values:

  • CALL_REJECTED: call rejected.

  • USER_BUSY: callee busy.

  • SUSPEND: suspended.

  • INVALID_NUMBER: invalid number.

  • POWERED_OFF: powered off.

  • NETWORK_BUSY: network busy.

  • NO_ANSWER: no answer.

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:

{"startTime":"09:00:00","endTime":"10:00:00"}

startTime specifies the start time, and endTime specifies the end time. Outbound call scheduling is initiated only during this time period. Otherwise, the system waits until the next schedulable time period.

Note
  • According to carrier policies, the final execution time is subject to platform scheduling. You can view the restricted calling periods for numbers in Real Number Management.

{"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:

  • MONDAY: Monday

  • TUESDAY: Tuesday

  • WEDNESDAY: Wednesday

  • THURSDAY: Thursday

  • FRIDAY: Friday

  • SATURDAY: Saturday

  • SUNDAY: Sunday

Valid values:

  • WEDNESDAY :

    Wednesday.

  • MONDAY :

    Monday.

  • THURSDAY :

    Thursday.

  • SUNDAY :

    Sunday.

  • FRIDAY :

    Friday.

  • TUESDAY :

    Tuesday.

  • SATURDAY :

    Saturday.

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: The update succeeded.

  • false: The update failed.

true

Code

string

The status code.

OK

Success

boolean

Indicates whether the API call is successful. Valid values:

  • true: The call succeeded.

  • false: The call failed.

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.