Skip to main content

Execute a Task

Use this API to execute a specified workflow task.

Request URL: /openapi/v1/workflow/execute

HTTP method: POST

Request parameters

ParameterTypeRequiredDescriptionExample
workflowIdStringYesTask ID.ex-dd47653n757w
bizDataObjectYesTask execution parameters. The required fields depend on the workflow type. For details, see bizData parameters (SQL task) or bizData parameters (data export).N/A

bizData parameters (SQL task)

ParameterTypeRequiredDescriptionExample
executeTypeStringYesExecution type:
  • immediately: Execute immediately.
  • schedule: Execute on a schedule.
immediately
execFailedActionStringYesAction when SQL execution fails:
  • stop: Stop the task after an execution error.
  • ignore: Ignore the execution error and continue the task.
  • rollback: Roll back the task after an execution error.
stop
backupFailedActionStringYesAction when the backup fails:
  • stop: Stop the task after a backup failure.
  • ignore: Ignore the backup failure and continue the task.
stop
executeTimeStringNoExecution time. Required when executeType is schedule. Format: yyyy-MM-dd'T'HH:mm:ssZ.2025-09-11T12:34:56Z

bizData parameters (data export)

ParameterTypeRequiredDescriptionExample
executeTypeStringYesExecution type:
  • immediately: Execute immediately.
  • schedule: Execute on a schedule.
immediately
executeTimeStringNoExecution time. Required when executeType is schedule. Format: yyyy-MM-dd'T'HH:mm:ssZ.2025-09-11T12:34:56Z

Response parameters

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
errorCodeStringError code.N/A
messageStringError message.N/A

Successful response example

{
"success": true
}