All Products
Search
Document Center

DataWorks:CreateLineageRelationship

Last Updated:Jan 12, 2026

Creates a lineage between a source entity and a destination entity. Either the source or destination entity must be a custom entity.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SrcEntityLineageEntityNo

The source entity.

DstEntityLineageEntityNo

The destination entity.

TaskLineageTaskNo

The task information.

Response parameters

ParameterTypeDescriptionExample
object

The response.

RequestIdstring

The request ID. The unique identifier of a request.

C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490
Successboolean

Indicates whether the request was successful.

true
Idstring

The lineage ID.

110xxxx:custom-table.xxxxx:maxcompute-table.project.test_big_lineage_080901:custom-sqlxx.00001

Examples

Sample success responses

JSONformat

{
  "RequestId": "C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490",
  "Success": true,
  "Id": "110xxxx:custom-table.xxxxx:maxcompute-table.project.test_big_lineage_080901:custom-sqlxx.00001\n"
}

Error codes

For a list of error codes, visit the Service error codes.