Replace a mapping rule
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';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"derivedElementId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","rule":{"type":"ElementMappingRule","id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","description":"example","nestedRules":[{"type":"ElementMappingRule","targetType":"example","targetTraits":["example"],"sourcePath":"example","sourceElementIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"root":false,"targetOwnedRelation":"example","originModelId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}],"targetOwnerId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","targetType":"example","targetTraits":["example"],"sourcePath":"example","sourceElementIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"root":false,"targetOwnedRelation":"example","originModelId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"nestedDerivedElementIds":{"additionalProperty":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/semantic-correspondences/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "derivedElementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "rule": { "type": "ElementMappingRule", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "description": "example", "nestedRules": [ { "type": "ElementMappingRule", "targetType": "example", "targetTraits": [ "example" ], "sourcePath": "example", "sourceElementIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "root": false, "targetOwnedRelation": "example", "originModelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "targetOwnerId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "targetType": "example", "targetTraits": [ "example" ], "sourcePath": "example", "sourceElementIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "root": false, "targetOwnedRelation": "example", "originModelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "nestedDerivedElementIds": { "additionalProperty": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'Replace a correspondence-owned mapping rule. The links it previously materialized are reconciled against the new match set; hand-authored links on the same correspondence are left untouched. Returns the updated model.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”A mapping rule owned by a correspondence, describing how one derived element is derived from the correspondence’s base model. Authored in the canonical downward direction (base to derived): the base model is the source, this model the target.
object
The element the rule derives, fixed for the rule’s lifetime. The rule selects which base elements it is derived from.
The rule. Its originModelId is set from the owning correspondence’s base model, so a client-supplied value is ignored. An element rule nested in it, at any depth, explains a derived element of its own, named in nestedDerivedElementIds, and saving records its links the same way, stamped with the nested rule’s id.
object
The type of mapping rule (discriminator for polymorphism).
Unique identifier for this rule. Can be client-provided or server-generated.
The rule’s name, where it has one. A stored mapping names its rules; a rule it writes without one is stored under what it produces.
The author’s note on this rule. Stored as the rule element’s description; a blank note is stored as no note, so saving a rule with the text cleared leaves it without one.
Nested mapping rules owned by this rule. Order matters - rules are executed in list order.
A mapping rule, discriminated by its own type.
object
The type of mapping rule (discriminator for polymorphism).
Unique identifier for this rule. Can be client-provided or server-generated.
The rule’s name, where it has one. A stored mapping names its rules; a rule it writes without one is stored under what it produces.
The author’s note on this rule. Stored as the rule element’s description; a blank note is stored as no note, so saving a rule with the text cleared leaves it without one.
Optional reference to an existing element to attach this rule’s output to.
The target element type to create for each matched source element.
The traits each created element carries beside targetType. Where an owned relation holds the element, the relation decides its form: its default trait is added where the element carries no member of the default’s exclusive group, and replaces a member the relation refuses. Absent when the rule names none.
Path expression to select source elements. Mutually exclusive with sourceElementIds.
Explicit source element IDs to map. Mutually exclusive with sourcePath.
Whether the mapped elements are root elements in the target model.
Target owned relation name for nested element mappings. Required when nested under another element mapping.
Reference to the origin model from which source elements are selected.
object
The type of mapping rule (discriminator for polymorphism).
Unique identifier for this rule. Can be client-provided or server-generated.
The rule’s name, where it has one. A stored mapping names its rules; a rule it writes without one is stored under what it produces.
The author’s note on this rule. Stored as the rule element’s description; a blank note is stored as no note, so saving a rule with the text cleared leaves it without one.
Optional reference to an existing element to attach this rule’s output to.
The target attribute name on the parent element’s target type.
Optional path expression to navigate from the parent’s source context.
Value mapping for the right side of the join (typically from target element).
object
Path expression to navigate to target elements.
Attribute options to extract value from (tries each in order until one has a value).
object
The template expression string.
Variable bindings for the template. Keys are variable names referenced in the expression.
object
Default value if no value is found.
Value transformers to apply in order.
object
The type of value mapper (e.g., “lowercase”, “uppercase”, “replace”).
Optional configuration options for the mapper.
object
A rule that writes a relation on the elements its parent rule generates. The target elements come from exactly one source, which is why targetElementMappingId, selectElement and targetQuery are mutually exclusive and at least one of those three, joinOn or sourcePath must be present. A bare sourcePath names no target of its own: each element it reaches is answered by whatever already corresponds to it in the model being produced.
object
The type of mapping rule (discriminator for polymorphism).
Unique identifier for this rule. Can be client-provided or server-generated.
The rule’s name, where it has one. A stored mapping names its rules; a rule it writes without one is stored under what it produces.
The author’s note on this rule. Stored as the rule element’s description; a blank note is stored as no note, so saving a rule with the text cleared leaves it without one.
Optional reference to an existing element to attach this rule’s output to.
The target relation name on the parent element’s target type.
Optional path expression to navigate from the parent’s source context.
Reference to the element mapping that produces the target elements for this relation.
Selects the relation’s target directly, by naming one element of the target model or one of its dependencies.
object
The selected element.
Optional element-filter expression narrowing when the selection applies, evaluated against the source element the relation is written for.
object
Value mapping for the right side of the join (typically from target element).
object
Path expression to navigate to target elements.
Attribute options to extract value from (tries each in order until one has a value).
object
The template expression string.
Variable bindings for the template. Keys are variable names referenced in the expression.
object
Default value if no value is found.
Value transformers to apply in order.
object
The type of value mapper (e.g., “lowercase”, “uppercase”, “replace”).
Optional configuration options for the mapper.
object
Value mapping for the right side of the join (typically from target element).
object
Path expression to navigate to target elements.
Attribute options to extract value from (tries each in order until one has a value).
object
The template expression string.
Variable bindings for the template. Keys are variable names referenced in the expression.
object
Default value if no value is found.
Value transformers to apply in order.
object
The type of value mapper (e.g., “lowercase”, “uppercase”, “replace”).
Optional configuration options for the mapper.
object
A Core DSL match query selecting the relation’s candidates from the run’s target scope, compiled against the target metamodel (match $c isa Class). joinOn picks which candidate a source element relates to. Read before every other target reference; a blank query counts as absent.
Whether a source element whose join matches none of the targetQuery candidates gets an external element generated for it, carrying the joined value as its key. When false, a join matching nothing fails the run. Refused without a targetQuery.
Whether the rule runs only for the source elements the rules before it on the same relation, under the same parent rule, resolved no target for. Several rules on one relation are the routes of one end, tried in their stored order. When false, the rule runs for every source element. A rule carrying it with no rule on its relation before it is refused on save and at run start. A targetQuery rule that a marked rule follows hands a source element it finds nothing for on to that rule instead of refusing it.
Optional reference to an existing element to attach this rule’s output to.
The target element type to create for each matched source element.
The traits each created element carries beside targetType. Where an owned relation holds the element, the relation decides its form: its default trait is added where the element carries no member of the default’s exclusive group, and replaces a member the relation refuses. Absent when the rule names none.
Path expression to select source elements. Mutually exclusive with sourceElementIds.
Explicit source element IDs to map. Mutually exclusive with sourcePath.
Whether the mapped elements are root elements in the target model.
Target owned relation name for nested element mappings. Required when nested under another element mapping.
Reference to the origin model from which source elements are selected.
The derived element each element rule nested in the rule explains, keyed by the nested rule’s id. A save refuses a nested element rule without an id or an entry here, an entry naming no nested rule of the tree, and a derived element the enclosing rule’s derived element does not hold. Not stored on the rule: the links a save records carry the rule’s id and the derived element, so the map is rebuilt from them.
object
Responses
Section titled “Responses”OK
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" } ]}