Get a model mapping
const url = 'https://api.modeldesk.io/model-mappings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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 https://api.modeldesk.io/model-mappings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Get model mapping
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
object
object
The release of the source metamodel the mapping reads, by version name.
The release of each source extension, keyed by extension id.
object
The release of the target metamodel the mapping writes, by version name.
The release of each target extension, keyed by extension id.
object
The models the mapping’s output depends on, each at the commit it is pinned to.
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
object
object
object
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
object
object
object
object
object
Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "type": { "sourceMetamodel": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "sourceMetamodelVersion": "example", "sourceMetamodelExtensions": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "sourceMetamodelExtensionVersions": { "additionalProperty": "example" }, "targetMetamodel": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "targetMetamodelVersion": "example", "targetMetamodelExtensions": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "targetMetamodelExtensionVersions": { "additionalProperty": "example" }, "targetDependencies": [ { "modelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "commitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }, "elementMapping": { "additionalProperty": { "squashElement": { "on": [ { "id": "example", "valueMappings": [ { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": {}, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" } ] } ] }, "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": { "path": {}, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "root": true, "typeMapping": { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": {}, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "attributeMapping": { "additionalProperty": { "valueMapping": { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": {}, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "attributeMapping": { "additionalProperty": {} } } }, "relationMapping": { "additionalProperty": { "elementMapping": "example", "joinOn": { "leftValue": { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": {}, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "rightValue": { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": {}, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" } }, "selectElement": { "filter": { "@path": { "relation": "example", "filter": {}, "distinct": true }, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": { "path": { "relation": "example", "filter": {}, "distinct": true }, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": { "relation": "example", "filter": {}, "distinct": true }, "@present": { "relation": "example", "filter": {}, "distinct": true } }, "elementId": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] } } }, "ownedRelationMapping": { "additionalProperty": { "path": { "relation": "example", "filter": { "@path": {}, "@root": true, "@attr": { "type": "example", "options": {} }, "@type": { "type": "example", "options": {} }, "@value": { "type": "example", "valueMapping": { "path": {}, "attribute": [ "example" ], "template": { "expr": "example" }, "map": { "type": "example", "options": {} }, "skipValues": [ "example" ], "default": "example" }, "options": {} }, "@not": {}, "@and": [], "@or": [], "@absent": {}, "@present": {} }, "distinct": true }, "elementMapping": "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" } ]}