Lineage

List Manual Lineages On Object

get

List any manual lineages attached to an object in the specified direction

Query parameters
idintegerrequired

The ID of the object to list lineages for

typestring · enumrequired

The type of the object to list lineages for

Options: dataset, property, chart, dashboard
object_isstring · enumrequired

Whether the object is the source or target of the lineage

Options: source, target
Responses
curl -L \
  --url 'https://connect.decube.io/api/v1/data/catalog/lineage/manual_lineage?id=1&type=dataset&object_is=source'
[
  {
    "id": 1,
    "source": {
      "type": "text",
      "name": "text",
      "id": 1,
      "subtype": "bigquery",
      "qual_id": "text",
      "icon": "text"
    },
    "target": {
      "type": "text",
      "name": "text",
      "id": 1,
      "subtype": "bigquery",
      "qual_id": "text",
      "icon": "text"
    },
    "data_job": {
      "type": "text",
      "name": "text",
      "id": 1,
      "subtype": "bigquery",
      "qual_id": "text",
      "icon": "text"
    }
  }
]

Create Manual Lineage

post

Create a manual lineage between two objects, returns the ID of the generated lineage

Body
sourceobjectrequired

targetobjectrequired

data_jobobjectoptional

Responses
curl -L \
  --request POST \
  --url 'https://connect.decube.io/api/v1/data/catalog/lineage/manual_lineage' \
  --header 'Content-Type: application/json' \
  --data '{
    "source": {
      "id": 1,
      "type": "dataset"
    },
    "target": {
      "id": 1,
      "type": "dataset"
    },
    "data_job": {
      "id": 1,
      "type": "data_job"
    }
  }'
1

Delete Manual Lineage

delete

Delete a manual lineage between two objects

Query parameters
source_idintegerrequired

The ID of the source object

source_typestring · enumrequired

The type of the source object

Options: dataset, property, chart, dashboard
target_idintegerrequired

The ID of the target object

target_typestring · enumrequired

The type of the target object

Options: dataset, property, chart, dashboard
Responses
curl -L \
  --request DELETE \
  --url 'https://connect.decube.io/api/v1/data/catalog/lineage/manual_lineage?source_id=1&source_type=dataset&target_id=1&target_type=dataset'

No body

Last updated