Creates a timed schedule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fnf:CreateSchedule |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FlowName |
string |
Yes |
The name of the workflow to which the timed schedule is attached. |
flow |
| ScheduleName |
string |
Yes |
The name of the timed schedule. The name must meet the following requirements:
|
testScheduleName |
| Description |
string |
No |
The description of the timed schedule. |
test description |
| Payload |
string |
No |
The trigger message of the timed schedule. The message must be in the JSON format. |
{"key": "value"} |
| CronExpression |
string |
Yes |
The cron expression. |
0 * * * * * |
| Enable |
boolean |
No |
Specifies whether to enable the timed schedule. Valid values:
|
true |
| SignatureVersion |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
testRequestId |
| Description |
string |
The description of the timed schedule. |
test description |
| ScheduleId |
string |
The ID of the timed schedule. |
testScheduleId |
| Payload |
string |
The trigger message of the timed schedule. |
{"key": "value"} |
| ScheduleName |
string |
The name of the timed schedule. |
testScheduleName |
| CreatedTime |
string |
The time when the timed schedule was created. |
2020-01-01T01:01:01.001Z |
| LastModifiedTime |
string |
The time when the timed schedule was last modified. |
2020-01-01T01:01:01.001Z |
| CronExpression |
string |
The cron expression. |
0 * * * * * |
| Enable |
boolean |
Indicates whether the timed schedule is enabled. |
true |
Examples
Success response
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. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 404 | FlowNotExists | Flow %s does not exist. | |
| 409 | ConcurrentUpdateError | Update conflict, please retry. | |
| 409 | ScheduleAlreadyExists | The schedule %s already exists in flow %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.