Get a mapping rule's footprint
const url = 'https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/semantic-correspondences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/footprint';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/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/semantic-correspondences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/footprint \ --header 'Authorization: Bearer <token>'Report which base elements a correspondence-owned rule touched, by running it read-only. Anchors are the elements it matched — one materialized link each. Navigated reads are the elements the run reached on the way to a value and records no link for; they are reported here and nowhere else. Nothing is persisted. The run reads the base model’s head, and the answer is cached on the rule’s content plus that commit, so repeated asks against an unchanged rule and base model do not re-run it. An origin mapping rule is refused: what it touched is already recorded as lineage on the elements it generated.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
Which concrete base elements a correspondence rule touched, computed by running it read-only. Nothing here is persisted.
object
The rule this footprint is of.
The element the rule derives — the target side of every link it materialized.
The base model the rule selects from.
The base-model commit the run read — its head, not the correspondence’s pinned base commit: matching reads live content, and a footprint against the pin would name elements a save would not match.
The base elements the rule matched, in match order — one link each.
One base element a rule touched, with the attributes it read from it.
object
The attributes of that element the run read, sorted by name. Empty when the element was reached but nothing was taken off it.
The base elements the run read without linking — stepped onto by a value slot’s path, or selected by a nested rule relative to an anchor. Ordered by id. Limited to the base model itself: a read stepping onto a dependency model’s element (a built-in datatype, an imported class) is not recorded by the lineage capture this reads from.
One base element a rule touched, with the attributes it read from it.
object
The attributes of that element the run read, sorted by name. Empty when the element was reached but nothing was taken off it.
The derived-side attributes this run wrote, sorted by name. What the run wrote, not what the rule declares — a slot that produced no value on any matched base element is absent.
Example generated
{ "ruleId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "derivedElementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "baseModelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "baseCommitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "anchors": [ { "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "attributesRead": [ "example" ] } ], "navigatedReads": [ { "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "attributesRead": [ "example" ] } ], "attributesWritten": [ "example" ]}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" } ]}