Updates a time-based schedule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FlowName | string | Yes | The name of the flow that is associated with the time-based schedule. The name must be unique within the region and cannot be modified after the time-based schedule is created. The name must meet the following conventions:
| testFlowName |
ScheduleName | string | Yes | The name of the time-based schedule. The name must meet the following conventions:
| testScheduleName |
Description | string | No | The description of the time-based schedule. | test description |
Payload | string | No | The trigger message of the time-based schedule. It must be in the JSON format. | {"key": "value"} |
CronExpression | string | No | The CRON expression. | 0 * * * * * |
Enable | boolean | No | Specifies whether to enable the time-based schedule. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "testRequestId",
"Description": "test description",
"ScheduleId": "testScheduleId",
"Payload": "{\"key\": \"value\"}",
"ScheduleName": "testScheduleName",
"CreatedTime": "2020-01-01T01:01:01.001Z",
"LastModifiedTime": "2020-01-01T01:01:01.001Z",
"CronExpression": "0 * * * * *",
"Enable": true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | - |
400 | InvalidArgument | Parameter error. | Parameter error. |
400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | The HTTP header '%s' must be specified. |
400 | MissingRequiredParams | The HTTP query '%s' must be specified. | The HTTP query '%s' must be specified. |
403 | AccessDenied | The resources doesn't belong to you. | - |
404 | FlowNotExists | Flow %s does not exist. | Flow %s does not exist. |
404 | ScheduleNotExists | The schedule %s for flow %s does not exist. | - |
409 | ConcurrentUpdateError | Update conflict, please retry. | Update conflict, please retry. |
412 | PreconditionFailed | The resource to be modified has been changed. | The resource to be modified has been changed. Please try again later. |
500 | InternalServerError | An internal error has occurred. Please retry. | An internal error has occurred. Please retry. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-03-21 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||||||||||
|