What it comes from and what uses it
GET
/api/v1/catalog/{ref}/lineage
const url = 'http://localhost:3000/api/v1/catalog/example/lineage?depth=3';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/catalog/example/lineage?depth=3' \ --header 'Authorization: Bearer <token>'Hop by hop, through what you can reach only: unseen counts what you can’t. Each node says how many edges it has each way (up, down), so a client can expand it. impact is what changing it reaches.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
An id, or an address
Query Parameters
Section titled “Query Parameters”direction
string
Up, down, or up,down (the default)
depth
integer
Hops each way
Responses
Section titled “Responses”Lineage
Media typeapplication/json
object
root
required
string format: uuid
nodes
required
Array<object>
object
id
required
string format: uuid
type
required
string
slug
required
string
name
required
string
address
required
{org}/{project}/{type}/{slug}[@release]; a part after its object
string
description
required
string | null
status
required
string
expires
required
string | null
expiring
required
boolean
private
required
boolean
tags
required
Array<string>
project
required
object
id
required
string format: uuid
slug
required
string
name
required
string
parent
required
createdAt
required
string
updatedAt
required
string
up
required
integer
down
required
integer
license
An asset’s license (rights.license); absent on other types
string | null
versions
How many versions an asset’s stack holds; release is which one this is
integer
edges
required
Array<object>
object
from
required
string format: uuid
to
required
string format: uuid
kind
required
string
via
required
string | null
unseen
required
integer
impact
required
object
things
required
integer
projects
required
integer
line
required
string
Example
{ "nodes": [ { "type": "brand", "status": "draft", "parent": { "type": "brand" } } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}