Skip to content

Get a mapping rule's footprint

GET
/models/{modelId}/semantic-correspondences/{correspondenceId}/rules/{ruleId}/footprint
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.

modelId
required
string format: uuid
correspondenceId
required
string format: uuid
ruleId
required
string format: uuid

OK

Media typeapplication/json

Which concrete base elements a correspondence rule touched, computed by running it read-only. Nothing here is persisted.

object
ruleId
required

The rule this footprint is of.

string format: uuid
derivedElementId
required

The element the rule derives — the target side of every link it materialized.

string format: uuid
baseModelId
required

The base model the rule selects from.

string format: uuid
baseCommitId
required

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.

string format: uuid
anchors
required

The base elements the rule matched, in match order — one link each.

Array<object>

One base element a rule touched, with the attributes it read from it.

object
elementId
required
string format: uuid
attributesRead
required

The attributes of that element the run read, sorted by name. Empty when the element was reached but nothing was taken off it.

Array<string>
navigatedReads
required

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.

Array<object>

One base element a rule touched, with the attributes it read from it.

object
elementId
required
string format: uuid
attributesRead
required

The attributes of that element the run read, sorted by name. Empty when the element was reached but nothing was taken off it.

Array<string>
attributesWritten
required

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.

Array<string>

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

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"
}
]
}

Not found

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"
}
]
}