Call the CreateDagComplement to create a retroactive data generation 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 CreateDagComplement

The operation that you want to perform.

StartBizDate String Required 2020-05-20 00:00:00

The start date-based timestamp of the retroactive data generation task.

EndBizDate String Required 2020-05-21 00:00:00

The end date of the retroactive data generation task.

RootNodeId Long Yes 1234

The ID of the start node for retroactive data generation.

IncludeNodeIds String Required 74324,74325

The IDs of nodes. If you want to population the data of one node, the node data must be in the includeNodeIds file.

Name String Required xm_test

The name of the workflow.

Parallelism Boolean Yes false

Indicates whether the execution is allowed concurrently.

ProjectEnv String Required PROD

The environment of the workspace, including projects in PROD and DEV.

RegionId String Required cn-shanghai

Region information, which is usually the region where the service is located. For example, China (Shanghai) is cn-shanghai, and China (Zhangjiakou) is cn-zhangjiakou. You do not need to specify the RegionId because it is automatically resolved based on the endpoint that is called.

ExcludeNodeIds String No 1234

Optional. The IDs of nodes for which you do not need to generate retroactive data.

BizBeginTime String No 00:00:00

Optional. The start time of the task. You must specify this parameter for hourly scheduled tasks.

BizEndTime String No 23:00:00

Optional. The time when the task ends. This parameter is required when tasks are scheduled by hour.

NodeParams String No bizdate=$bizdate tbods=$tbods

Optional. The node parameters.

Response parameters

Parameter Type Example Description
Data List 111

List of workflow IDs.

ErrorCode String 0

The error code.

ErrorMessage String test

The returned message.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String E6F0DBDD-5AD****

The ID of the request. It is used to locate logs and troubleshoot problems.

Success Boolean true

Indicates whether the call is successful.

Examples

Sample requests

http(s)://[Endpoint]/? Action=CreateDagComplement
&StartBizDate=2020-05-20 00:00:00
&EndBizDate=2020-05-21 00:00:00
&RootNodeId=1234
&IncludeNodeIds=74324,74325
&ExcludeNodeIds= 1234
&Name=xm_test
&Parallelism=false
&ProjectEnv=PROD
&RegionId=cn-shanghai
&BizBeginTime=00:00:00
&BizEndTime=23:00:00
&<Common request parameters>

Sample success responses

XML format

<RequestId>E6F0DBDD-5AD****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>111</Data>
<ErrorCode>0</ErrorCode>
<ErrorMessage>test</ErrorMessage>
<Success>true</Success>

JSON format

{
    "RequestId": "E6F0DBDD-5AD****",
    "HttpStatusCode": 200,
    "Data": 111,
    "ErrorCode": 0,
    "ErrorMessage": "test",
    "Success": true
}

Errors

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