Skip to content

Get a public model's lineage chain

GET
/public/models/{modelId}/lineage
curl --request GET \
--url https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lineage

The model’s lineage correspondences of every nature, followed in both directions through publicly visible models, each read at its latest release, up to the configured number of steps. A correspondence whose other end is not published is counted on the element it leaves, named nowhere and not followed. The chain also stops at a public model whose organization does not publish lineage: its element is shown, its own correspondences are not. Also names the published models on the chain and how many correspondences run between each two. Present only when the owning organization has the semantic-lineage feature. Needs no sign-in.

modelId
required
string format: uuid
version
string

The snapshot of the model to serve, URL-encoded: the name of one of its releases, or @working (exactly, case-sensitive) for its working version, the head of its main branch, when its owner publishes it. Absent, its default snapshot: the latest release, or the working version for a model without a release that publishes it. A pin that matches nothing the model offers answers the same 404 as a model that is not publicly visible. On the resolve operation it names a snapshot the hit’s model has to offer, while the hit itself is found at the latest release.

The lineage. Carries Cache-Control: public, max-age=300 (max-age=60 when the snapshot served is the working version) and no entity tag: its other ends are other models, released and unpublished on their own schedule.

Media typeapplication/json

A public model’s lineage chain, restricted to what an anonymous reader may see: followed in both directions through published models, up to the configured number of steps, whatever the correspondences’ nature or the models’ abstraction levels.

object
level

The model’s own canonical level; omitted when its metamodel declares none.

string
Allowed values: CONCEPTUAL LOGICAL PHYSICAL
models
required

The published models on the chain, the public model first.

Array<object>

A published model on a public model’s lineage chain.

object
id
required
string format: uuid
name
required
string
metamodel

The name of the model’s metamodel.

string
level

The model’s canonical level; omitted when its metamodel declares none.

string
Allowed values: CONCEPTUAL LOGICAL PHYSICAL
lineagePublished
required

Whether the model’s organization publishes lineage. Only then does the model have a lineage of its own, and the chain go on through it.

boolean
links
required

Per pair of published models on the chain, how many correspondences run between them.

Array<object>

How many correspondences run from a derived model’s elements to a base model’s.

object
derivedModelId
required
string format: uuid
baseModelId
required
string format: uuid
count
required
integer
edges
required
Array<object>

One correspondence on a public model’s lineage chain whose both ends are publicly visible. It hangs off an element of the public model or of a published model further along the chain.

object
modelId
required

The model of the element the correspondence hangs off.

string format: uuid
elementId
required

The element the correspondence hangs off.

string format: uuid
direction
required

BASED_ON when the element is based on the other end, BASIS_OF when the other end is based on the element.

string
Allowed values: BASED_ON BASIS_OF
kind
required

GENERATED when a mapping produced it, LINKED when declared or metamodel-native.

string
Allowed values: GENERATED LINKED
other
required

The other end of a public lineage correspondence, read at that model’s latest release.

object
modelId
required
string format: uuid
modelName
required
string
elementId
required
string format: uuid
label
required
string
type
required

The other element’s type as its metamodel labels it, in the first language it carries.

string
level

The other model’s canonical level; omitted when its metamodel declares none.

string
Allowed values: CONCEPTUAL LOGICAL PHYSICAL
lineagePublished
required

Whether the other model’s organization publishes lineage. Only then does the other model have a lineage of its own, and the chain go on through it.

boolean
hidden
required

Per element id on the chain, how many correspondences lead into models or elements that are not published; the chain does not go on through them. Elements with none are absent.

object
key
additional properties
integer

Example

{
"level": "CONCEPTUAL",
"models": [
{
"level": "CONCEPTUAL"
}
],
"edges": [
{
"direction": "BASED_ON",
"kind": "GENERATED",
"other": {
"level": "CONCEPTUAL"
}
}
]
}
Cache-Control
string

The model is not publicly visible, does not exist, or its organization lacks the semantic-lineage feature; the three are indistinguishable.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}