更新任务信息
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpdateTask | 要执行的操作,取值:UpdateTask。 |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01。 |
TaskOpenId | String | 是 | abcdef | 任务id |
StartTime | String | 是 | 2021-05-18 20:11:42 | 任务开始时间 |
EndTime | String | 是 | 2021-05-18 20:11:42 | 任务结束时间 |
RingAgainTimes | Integer | 否 | 1 | 重呼次数,默认0 |
RingAgainInterval | Integer | 否 | 5 | 重呼间隔,最小5分钟,默认5 |
Concurrency | Integer | 是 | 100 | 任务并发 |
ForbidTimeList | Array of Object | 否 | [{"Times":["10:00-11:00"],"Weekdays":[3]}] | 禁呼时间设置 |
Recall | Boolean | 否 | true | 是否更新重呼设置,默认true |
本接口无特有的返回参数。更多信息请见返回结构。
{ "TaskOpenId":"123", "Concurrency":1, "ForbidTimeList":[ { "Weekdays":[ 1 ], "Times":[ "10:00-11:00" ] } ], "RingAgainTimes":1, "RingAgainInterval":5, "EndTime":"2021-05-21 17:35:44", "StartTime":"2021-05-20 17:35:43" }
{ "ResponseMetadata":{ "RequestId":"2021052017361001022509205912000B28", "Action":"UpdateTask", "Version":"2022-01-01", "Service":"vms", "Region":"cn-north-1" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | MissingParameter | |
400 | InvalidParameter | |
400 | OperationDenied | |
400 | QuotaExceeded | |
400 | IdempotentParameterMismatch | |
400 | DryRunOperation | |
400 | MissingAction | |
400 | InvalidAction | |
500 | InternalError | |
503 | ServiceUnavailable |