You can call this operation to submit a workflow.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Required SubmitFlow

The operation that you want to perform. For API requests using the HTTP or HTTPS URL, this parameter is required. Set the value to SubmitFlow.

FlowId String Required F-7A39731FE719****

The ID of the workflow.

ProjectId String Required 257A173659F5****

The ID of the project.

Region ID String Required cn-hangzhou

The ID of the region where the streaming domain resides.

Conf String No {"cyctime":"1542783967503"}

The configuration information in the format of {"key":"value"}.

In this example, cyctime is the time of the execution. It is a timestamp whose data type is long.

Response parameters

Parameter Type Example Description
Data String -

A deprecated parameter.

Id String FI-7A39731FE719****

The ID of the workflow instance.

InstanceId String -

A deprecated parameter.

RequestId String 243D5A48-96A5-4C0C-8966-93CBF65635ED

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=SubmitFlow
&FlowId=F-7A39731FE719****
&ProjectId=257A173659F5****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<SubmitFlowResponse>
      <RequestId>2670BCFB-925D-4C3E-9994-8D12F7A9F538</RequestId>
      <Id>FI-7A39731FE719****</Id>
      <InstanceId>FI-7A39731FE719****</InstanceId>
      <Data>FI-7A39731FE719****</Data>
</SubmitFlowResponse>

JSON format

{
    "RequestId": "2670BCFB-925D-4C3E-9994-8D12F7A9F538",
    "Id": "FI-7A39731FE719****",
    "InstanceId": "FI-7A39731FE719****",
    "Data": "FI-7A39731FE719****"
}

Error codes

For a list of error codes, visit the API Error Center.