Enable origin mapping
const url = 'https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/origin-mapping';const options = {method: 'POST', 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 POST \ --url https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/origin-mapping \ --header 'Authorization: Bearer <token>'Enable origin mapping for model
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Created
object
The metamodel the model is written in; its id is the model’s metamodel id.
object
True when a model can be created on the metamodel only together with an extension that concretizes it.
Absent on an ordinary information metamodel. DATA_SCHEMA marks one whose models the platform derives for datasets: it is never offered where models are created, imported or picked.
The display name of the tower this metamodel is the root of. Authored on the root only. Presentation data: it changes no resolution, validation or dependency behavior.
One line describing the tower, authored on its root beside towerName.
The metamodel’s task line, what a user makes with a model of it.
True when the metamodel exists only for other metamodels to build on, so no one creates or imports a model on it directly. Absent means false.
The language tag of the language the metamodel’s standard is written in, in lower case. Authored on a base metamodel only; omitted when the standard declares none.
The version of the standard the metamodel implements. A release is named after it, or 1.0.0 when the metamodel declares none.
The declared base metamodel that application profiles of this metamodel are built to profile, propagated from a family extension’s binding. Absent on a base metamodel and on any metamodel carrying no family binding.
True when the metamodel is an add-on: a model adds its profiles on top of its own metamodel, so no one creates or imports a model on it directly. Absent means false.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).
object
Present only on a model an agent acting for a person created, which createdBy names: the AI platform the agent ran on and the label of its client, both as the agent’s token named them. No request sets it.
object
The platform’s host, such as claude.ai, or loopback for an app on the person’s computer.
The client’s name for itself, such as Claude.
A compiled metamodel, documented in full under Get a metamodel (GET /metamodels/{metamodelId}).
object
A compiled metamodel extension, documented in full under Get a metamodel extension (GET /metamodel-extensions/{extensionId}).
object
The add-ons the model adds to its metamodel, compiled at the releases it pins, in the order their profiles apply. metamodel is already resolved with them. Omitted when the model adds none.
A compiled metamodel, documented in full under Get a metamodel (GET /metamodels/{metamodelId}).
object
object
object
The commit’s parents, in order: none for the first commit, which leaves the field out, one for an ordinary commit, and two for a merge, the head of the branch merged into first and the head of the branch merged from second. A history that follows first parents reaches a merged branch’s own commits through the second.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
The author’s description of the change. Absent when the commit was made without one.
The idempotency key of the request that produced this commit, as the client sent it. Absent when the request carried none.
object
The versions released at this commit. Absent when none were.
A named release of a model at one commit. A release of a metamodel-level model also carries the compilation frozen at release time; see MetamodelRelease.
object
The model’s content as released. Carried when one version is read, created or updated, and left out of listings.
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The base metamodel compiled at release time. Present only on a base-metamodel release.
object
The extension compiled at release time. Present only on an extension release.
object
Commit of the associated built-in element model at release time. Absent for extension releases, for base metamodels without a built-in element model and for every other model’s release.
When the frozen compilation was last built: the release time, changed afterwards only by the rebuild maintenance command. Absent outside metamodel-level releases.
The violations a version was released with, because the releasing user overrode them. Absent on a version released without violations.
object
The number of error findings the model had when it was released.
The distinct codes of those findings, sorted.
Who released it, as a commit names its author: a person (USER), whose name reads resolve, or a service account (MACHINE) with its name.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
When it was released; the same instant as the version’s createdAt.
The findings dismissed when a version was cut: how many of the warnings and informational findings of its release validation a dismissal of the model matched at that commit, and under which codes. Absent on a version cut with none dismissed, and on every version cut before dismissals were recorded. It names no person.
object
How many findings were dismissed.
The distinct codes of those findings, sorted.
object
The commit’s parents, in order: none for the first commit, which leaves the field out, one for an ordinary commit, and two for a merge, the head of the branch merged into first and the head of the branch merged from second. A history that follows first parents reaches a merged branch’s own commits through the second.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
The author’s description of the change. Absent when the commit was made without one.
The idempotency key of the request that produced this commit, as the client sent it. Absent when the request carried none.
object
The versions released at this commit. Absent when none were.
A named release of a model at one commit. A release of a metamodel-level model also carries the compilation frozen at release time; see MetamodelRelease.
object
The model’s content as released. Carried when one version is read, created or updated, and left out of listings.
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The base metamodel compiled at release time. Present only on a base-metamodel release.
object
The extension compiled at release time. Present only on an extension release.
object
Commit of the associated built-in element model at release time. Absent for extension releases, for base metamodels without a built-in element model and for every other model’s release.
When the frozen compilation was last built: the release time, changed afterwards only by the rebuild maintenance command. Absent outside metamodel-level releases.
The violations a version was released with, because the releasing user overrode them. Absent on a version released without violations.
object
The number of error findings the model had when it was released.
The distinct codes of those findings, sorted.
Who released it, as a commit names its author: a person (USER), whose name reads resolve, or a service account (MACHINE) with its name.
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
When it was released; the same instant as the version’s createdAt.
The findings dismissed when a version was cut: how many of the warnings and informational findings of its release validation a dismissal of the model matched at that commit, and under which codes. Absent on a version cut with none dismissed, and on every version cut before dismissals were recorded. It names no person.
object
How many findings were dismissed.
The distinct codes of those findings, sorted.
object
Present only on a MAPPING_GENERATE action.
object
How many staged changes the commit’s record holds, when it is a landing of a draft made since landings recorded their chain. Absent on every other commit. The record itself is on the single commit reads, ModelCommitRecordView and ModelCommitHeaderView.
On a page of history, a merge commit that merged an import into the model: the import whose mergeCommitId it is, so a client names the row by the import rather than by its branches. Derived when the page is read from the import records, with one read per page that holds a merge commit; never stored on the commit. Absent on every other commit, including a merge of an import whose record is gone.
object
The import’s source name, reduced as the model’s source route gives it. Absent where the reader may not read the import by its own access rules, as on the source route; those rules still hold for a merged import whose record was deleted.
object
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
The metamodels the dependency models are written in, keyed by metamodel id, each resolved at the dependency’s pin with its import closure and no extensions. A dependency’s elements are read through these. The model’s own metamodel is never repeated here. Present only when dependencyModels is.
object
A compiled metamodel, documented in full under Get a metamodel (GET /metamodels/{metamodelId}).
object
object
object
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
object
object
object
Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.
What the server derived about each element, keyed by element id.
object
What the server derived about one element: who owns it, where it comes from, and what points at it. Empty members are left out.
object
The element’s authored identity IRI, on a public read: what the published-IRI index holds for the latest release, or what the served release declares when it is an older one. Absent when the element has none or the index lacks it.
Present exactly when iri is: whether the catalog serves iri as an address of this element. Always true at the latest release; at an older one, true only where the latest release gives this same element the same IRI.
Every element owning this one, each with the relation it is owned through. Usually one; empty for a root.
object
The elements that point at this one, keyed by relation name.
object
Present only when the read asked for expand=labels. The name each element is listed under, keyed by element id: the model’s own elements, and the elements of the dependencyModels the response carries (with expand=dependencies, or on a commit read). Each is the element’s label value as its metamodel maps it, taking the first translation of a language-tagged one, else its name attribute, else its @name; an element none of these names, or whose label cannot be read, is listed under its type, without a leading @. The same reading a commit diff’s resolvedNames uses. Labels are not unique: two elements may share one.
object
Present only on an alignment model.
object
Example
{ "metamodel": { "kind": "DATA_SCHEMA" }, "owner": { "type": "USER" }, "accessMode": "SHARED", "branch": { "head": { "createdBy": { "type": "USER" }, "versions": [ { "model": { "elements": { "additionalProperty": { "extensionLayer": [ { "kind": "attribute" } ], "lineage": { "properties": [ { "propertyType": "ATTRIBUTE", "sources": [ { "propertyType": "ATTRIBUTE", "role": "PRIMARY" } ] } ] } } } }, "validationOverride": { "by": { "type": "USER" } } } ], "actions": [ { "type": "MODEL_CREATE" } ] } }, "dependencyModels": { "additionalProperty": { "elements": { "additionalProperty": { "extensionLayer": [ { "kind": "attribute" } ], "lineage": { "properties": [ { "propertyType": "ATTRIBUTE", "sources": [ { "propertyType": "ATTRIBUTE", "role": "PRIMARY" } ] } ] } } } } }, "elements": { "additionalProperty": { "extensionLayer": [ { "kind": "attribute" } ], "lineage": { "properties": [ { "propertyType": "ATTRIBUTE", "sources": [ { "propertyType": "ATTRIBUTE", "role": "PRIMARY" } ] } ] } } }}Bad request
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}Not found
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}