Modifying a Scheduling
Function
This API is used to modify a schedule by task ID and scheduling ID.
URI
PUT /v2/{project_id}/fdi/instances/{instance_id}/tasks/{task_id}/dispatches/{dispatch_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see Appendix > Obtaining a Project ID in the ROMA Connect API Reference. |
| instance_id | Yes | String | Instance ID. |
| task_id | Yes | String | Task ID, the unique identifier of a task. |
| dispatch_id | Yes | String | Schedule ID, the unique identifier of a schedule. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| start_datetime | No | Integer | Start time of a scheduling plan. Range: 946684800000–2147512447000 |
| period | No | String | Unit of the execution period of a schedule. If the Cron expression is used, the value is empty. |
| dispatch_interval | No | Integer | Interval for executing a schedule. |
| remark | No | String | Remarks of a schedule. |
| use_quartz_cron | No | Boolean | Whether the schedule uses the Cron expression. |
| cron | No | String | Cron expression for a schedule. |
| cron_timezone | No | String | Time zone information. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| dispatch_id | String | Schedule ID. |
| task_id | String | ID of a task associated with a schedule. |
| start_datetime | Integer | Start time of a scheduling plan. Range: 946684800000–2147512447000 |
| period | String | Unit of the execution period of a schedule. If the Cron expression is used, the value is empty. |
| dispatch_interval | Integer | Interval for executing a schedule. |
| created_date | Integer | Time when a schedule is created. |
| last_modified_date | Integer | Last modification time of a schedule. |
| remark | String | Remarks of a schedule. |
| use_quartz_cron | Boolean | Whether the schedule uses the Cron expression. |
| cron | String | Cron expression for a schedule. |
| cron_timezone | String | Time zone information. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Example Requests
Modify the interval of the schedule of a specified data integration task as once a day without using Cron expression.
{
"dispatch_id" : "0b046396c0f84687840c37c642389609",
"task_id" : "34bb58f48c684b5ea1158cff69b9fbe4",
"start_datetime" : 1605597966246,
"period" : "DAY",
"dispatch_interval" : 1,
"created_date" : 1605570764692,
"last_modified_date" : 1605570764692,
"remark" : "123",
"use_quartz_cron" : false
} Example Responses
Status code: 200
OK
{
"dispatch_id" : "0b046396c0f84687840c37c642389609",
"task_id" : "34bb58f48c684b5ea1158cff69b9fbe4",
"start_datetime" : 1605597966246,
"period" : "DAY",
"dispatch_interval" : 1,
"created_date" : 1605570764692,
"last_modified_date" : 1605570764692,
"remark" : "123",
"use_quartz_cron" : false
} Status code: 400
Bad Request
{
"code" : 400,
"reason" : {
"error_code" : "FDI.3149",
"error_msg" : "The task ID is empty."
}
} Status code: 404
Not Found
{
"code" : 404,
"reason" : {
"error_code" : "FDI.3180",
"error_msg" : "This task is not in the project."
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.