Skip to content

Merge dataset branches

POST
/datasets/{datasetId}/branches/{branchId}/merge
curl --request POST \
--url https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/branches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "source": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "message": "example", "expectedHeadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "expectedSourceHeadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "resolutions": [ { "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "take": "target", "fields": { "additionalProperty": "target" } } ], "takeOthers": "target", "selection": { "leaveOut": [ { "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "fields": [ "example" ] } ], "only": [ { "elementId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "fields": [ "example" ] } ] } }'

Merge the source branch into this one. The server compares both branches with their merge base row by row: a row only one side changed takes that side’s version, and a row both changed, or both removed, the same way stays as it is. A row both changed is merged column by column, so two branches that changed different columns of one row merge; a column both changed to different values is a conflict on that row, listed as one field per column (an attribute for a value column, a relation for a reference column, whose values are the ids of the rows it points at). A column’s references to models, model elements and datasets are a relation field of their own, platform: followed by the column, whose values are the references themselves (kind, resourceId, elementId). Beside its columns, what a row says about itself merges the same way and conflicts as a field of its own: basedOn, selectable, and each reason as reason: followed by the column it is for, or reason:row. A row one side removed and the other changed is a conflict on the row, changed-and-deleted, listing every field of the side that holds it. A row both branches added under one id is one row, merged as above. One conflict refuses the whole merge with nothing written, and the problem lists every conflicting row and the three commits the merge was computed from; resolvedNames is empty, since a row is named from its own columns.

The parts a row holds are compared by their partId, at any depth. A part is the field <property>[<partId>] and each of its columns <property>[<partId>].<column>, a part inside it <property>[<partId>].<property>[<partId>]. Two branches that changed different columns of one part, or each added a part, merge; a column of one part both changed differently is a conflict on that field; a part one branch removed and the other changed is one conflict on the part, the outermost such part, whose values are the part whole as each side holds it, and a resolution taking it from a side takes the part whole. The merged parts of a property come in this branch’s order, then those only the source holds.

A refusal is resolved as a model’s is: send the merge again with resolutions, one per conflicting row, and both heads the refusal names. A resolution takes the row from this branch (target) or the source (source) whole, which for a row one side removed is keeping or removing it, or, for a row both sides hold, takes each conflicting column it names from the side it names (fields), the columns neither side contests merged as above. A resolution that names a row the merge does not refuse, a field it does not contest, or takes fields on a row one side removed, is answered as InvalidResolutionProblem.

References follow the rows: a reference to a row of this dataset that the merge removes is dropped, in the rows the merge brings and in this branch’s other rows that point at it. Every row the merge writes is judged against this branch as it will stand, as a staged row is, and lands flagged where it breaks a rule. A merge lands as one commit with two parents, this branch’s head first and the source’s head second; its diff against its first parent is what the merge brought. The source branch is neither moved nor deleted.

datasetId
required
string format: uuid
branchId
required
string format: uuid

The branch to merge into.

Media typeapplication/json

What merging a branch into the one the route names takes: the branch to merge, what the merge commit is called, optionally the heads the caller expects the two branches at, and, when it resolves a refusal, the side each conflict it names is taken from and the side for every conflict it does not, and optionally the changes kept out of the merge or the only ones let in.

object
source
required

The branch to merge from, another branch of the same model.

string format: uuid
message

What the merge commit is called in history. Optional, and a blank or whitespace-only message is stored as absent, as a landing’s is.

string
<= 2000 characters
expectedHeadId

The head the caller last saw on the branch merged into. When sent, a branch that has moved past it refuses the merge with BranchHeadConflictProblem before anything is read. When omitted, the merge lands on whatever the branch holds.

string format: uuid
expectedSourceHeadId

The head the caller last saw on the branch merged from. When sent, a source that has moved past it refuses the merge with BranchHeadConflictProblem naming the source, since it holds versions the caller never saw. A caller resolving a refusal sends the sourceCommitId the refusal names. When omitted, the merge takes whatever the source holds.

string format: uuid
resolutions

The side each conflict of a refused merge is taken from, one per conflict, as the refusal’s conflicts name them. Sent only together with both expectedHeadId and expectedSourceHeadId, or refused as InvalidResolutionProblem with heads-required. Read only when the merge is refused again: a merge that is clean by now lands as if none were sent. A resolution naming an element the merge does not refuse, or one named twice, is refused as InvalidResolutionProblem; a conflict left without one refuses the merge as MergeConflictProblem, unless takeOthers covers it.

Array<object>
<= 1000 items

The side one conflicting element is taken from. A choice between what the two branches hold, never a value: what lands is the chosen side’s version of the element.

object
elementId
required

The conflicting element, as the refusal’s conflicts name it.

string format: uuid
take
required

target: the element as the branch merged into holds it, or its absence where that branch does not hold it. source: the same from the branch merged from. fields: the target’s version with the fields fields names taken from the side each names, for an element both branches hold as the same type.

string
Allowed values: target source fields
fields

For take: fields only, and then at least one: the side each named attribute or relation key is taken from. A key the source does not hold is removed when taken from it. Every key must be one either branch’s version of the element holds, and no longer than 1024 characters; the refusal’s fields lists the ones the two disagree on.

object
<= 1000 properties
key
additional properties
string
Allowed values: target source
takeOthers

The side every conflict no resolution names is taken from whole: target or source, as take reads them. A request that sends it resolves every conflict, so a merge with more conflicts than resolutions may hold can land: name the exceptions in resolutions and take the rest from one side. Sent only together with both expectedHeadId and expectedSourceHeadId, or refused as InvalidResolutionProblem with heads-required; read only when the merge is refused again, so a merge that is clean by now lands as if it were not sent. The server reads fields too, as take does, and refuses it as InvalidResolutionProblem with fields-unexpected before anything is read, since fields are taken per element.

string
Allowed values: target source
selection

The changes a merge keeps out, or the only ones it lets in, among the changes it composes by itself. Exactly one of leaveOut and only is sent: both, or neither, is refused as InvalidSelectionProblem with both-lists or no-list. The model merge applies it; the dataset merge does not, and refuses a well-formed one with not-supported. Omit the whole selection, or send an empty leaveOut, to merge everything. A selection chooses between what the two branches hold and never carries a value. A conflicting element is resolved by resolutions and takeOthers, never by the selection. An element named by two entries, across the list, is refused with duplicate.

object
leaveOut

The elements whose changes the merge leaves out. An element named whole lands as the branch merged into holds it, or stays absent where that branch does not hold it; one named with fields is merged with each named key keeping that branch’s value. An empty list leaves nothing out, which is the full merge.

Array<object>
<= 1000 items

One element a selection names, whole or by some of its keys.

object
elementId
required

The element the entry is about.

string format: uuid
fields

The attribute and relation keys the entry is limited to. Omitted, the entry names the whole element; an empty list names nothing and is refused as InvalidSelectionProblem with fields-empty, and a key named twice is refused with duplicate.

Array<string>
<= 1000 items unique items
only

The only elements whose changes the merge takes from the branch merged from, every other element staying as the branch merged into holds it. An element named with fields takes only the named keys from the source. An empty list takes nothing and is refused with nothing-selected.

Array<object>
<= 1000 items

One element a selection names, whole or by some of its keys.

object
elementId
required

The element the entry is about.

string format: uuid
fields

The attribute and relation keys the entry is limited to. Omitted, the entry names the whole element; an empty list names nothing and is refused as InvalidSelectionProblem with fields-empty, and a key named twice is refused with duplicate.

Array<string>
<= 1000 items unique items

The merge landed as one two-parent commit on this branch

Media typeapplication/json

A landed merge: the two-parent commit it recorded, and the three commits it was computed from.

object
commit
required

The merge commit, in the shape a walked commit is listed in. Its parentId is targetCommitId, and its actionTypes describe what the merge brought to the branch it landed on.

object
id
required
string format: uuid
parentId

Absent on the initial commit.

string format: uuid
authorId
required
string format: uuid
message

The author’s description of the change. Absent on a commit made without one. For a staged change it is the message that was sent, absent when it was blank or left out.

string
requestId

The key of the request that produced the commit, absent on a commit made without one. For a staged change it is the changeRequestId that was sent.

string
createdAt
required
string format: date-time
actionTypes
required

The deduped, sorted type values of the commit’s actions. Empty rather than absent on a commit that records none.

Array<string>
closureRecorded

Present, and true, on a merge commit whose actionTypes include a dependency or metamodel-pin type for every change it made to the model’s dependencies and metamodel pin. A merge commit names the elements it changed as element actions whatever they are, so one without it says nothing about those: a client has to assume they may have moved. Absent on every other commit, whose actionTypes always tell.

boolean
mergeBaseId
required

The common ancestor the two branches were compared against.

string format: uuid
targetCommitId
required

The head the merge landed on, the merge commit’s first parent. A head other than the one the caller last saw means someone landed on the branch in the meantime, and their work is part of the merge.

string format: uuid
sourceCommitId
required

The source branch’s head that was merged, the merge commit’s second parent.

string format: uuid

Example generated

{
"commit": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"parentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"authorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"message": "example",
"requestId": "example",
"createdAt": "2026-04-15T12:00:00Z",
"actionTypes": [
"example"
],
"closureRecorded": true
},
"mergeBaseId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"targetCommitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"sourceCommitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The body is missing source, or source is this same branch, answered with the plain problem. Or resolutions or takeOthers are sent without both expectedHeadId and expectedSourceHeadId, or a resolution cannot be applied as sent, answered as InvalidResolutionProblem; nothing is applied. Or selection is sent, which a dataset merge does not take, answered as InvalidSelectionProblem with not-supported before anything is read.

Media typeapplication/problem+json
Any of:

A Problem answered when a merge is refused again and one of the resolutions sent with it cannot be applied as sent. Nothing was applied and nothing was written. Only the first broken rule is named, in the order the resolutions were sent.

object
type
required

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
type
required

Stable constant a client branches on, which is what tells this 400 from the plain one a body that cannot be read is refused with.

string format: uri
Allowed values: https://modeldesk.io/problems/invalid-resolution
rule
required

The rule the resolution broke. not-a-conflict: it names an element the merge does not refuse. duplicate: it names an element another resolution already names. fields-missing: it takes fields and names none. fields-unexpected: it names fields without taking fields, or takes a field from fields, or takeOthers is fields. unknown-field: it names a field neither branch’s version of the element holds, or one longer than 256 characters. not-on-both-sides: it takes fields on an element one branch does not hold. type-differs: it takes fields on an element the two branches hold as different types. heads-required: resolutions or takeOthers were sent without both expectedHeadId and expectedSourceHeadId.

string
Allowed values: not-a-conflict duplicate fields-missing fields-unexpected unknown-field not-on-both-sides type-differs heads-required
elementId

The element the resolution that broke the rule names. Absent for heads-required, which is about the resolutions as a whole, and for fields-unexpected on takeOthers, which names no element.

string format: uuid

Example

{
"type": "https://modeldesk.io/problems/invalid-resolution",
"rule": "not-a-conflict"
}

The dataset is theirs to read but not to change.

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

The dataset does not exist or is not the caller’s to read, answered with the plain problem, or branchId or source names no branch of it, answered as RefNotFoundProblem. A draft is not a branch, so naming one reads as naming nothing.

Media typeapplication/problem+json
Any of:

A Problem answered when a ref the request reads at is not there for the caller, on a resource they may read: a ref id that names nothing, a ref of another resource, and another user’s draft, which reads exactly as a ref that does not exist. The draft routes answer it too when the caller holds no draft.

A 404, as a missing resource is, and told apart from one by its type. A resource the caller cannot read keeps the plain answer it always had, whatever ref was named, so this one never says anything about a resource the caller could not see. To a client it means that the ref it was reading, typically a draft committed or discarded in another session, is gone while the resource stays: it goes back to the branch. The problem names no ref, so the answer for an id that names nothing and for another user’s draft is the same, byte for byte.

object
type
required

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
type
required

Stable constant a client branches on, which is what tells this 404 from a resource that is missing or not the caller’s to read.

string format: uri
Allowed values: https://modeldesk.io/problems/ref-not-found

Example

{
"type": "https://modeldesk.io/problems/ref-not-found"
}

One of four, each told apart by type, and none writes anything: the branches disagree on at least one row and the request does not resolve every one; the source holds nothing this branch does not already have; the two heads have several closest common ancestors; or a branch is not at the head the request expects, or this branch moved while the merge was being computed, answered as BranchHeadConflictProblem naming the branch.

Media typeapplication/problem+json
One of:

A Problem answered when the two branches of a merge disagree on at least one element and the request did not resolve every conflict, or the updater refused a resolution or a selection entry it sent. Nothing was written. Every conflict rides at once, described, so a caller resolves them all in one more call: it sends the merge again with a resolution per conflict and the two heads this problem names. Every member is always written.

object
type
required

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
type
required

Stable constant a client branches on, which is what tells this 409 from the other two a merge answers with.

string format: uri
Allowed values: https://modeldesk.io/problems/merge-conflict
conflicts
required

Every conflicting element, in element-id order, whether resolved or not. Empty only for a merge with no conflict whose selection the updater refused, which rejected then reports.

Array<object>

One element a merge could not take from either branch, why, and what each branch holds for it: enough to choose a side without reading either branch. The names of the elements its values reference are on the problem’s resolvedNames.

object
elementId
required
string format: uuid
target
required

What the branch merged into holds for the element.

object
present
required

Whether the branch holds the element at all.

boolean
type

The element’s type on that branch, absent when it does not hold the element. An element the two branches hold as different types is resolved by taking one side whole.

string
owners
required

The ids of the elements that own it on that branch, in id order. Empty for the model’s root, and for an element the branch does not hold. Two branches that placed one element under different owners show it here, with nothing among its fields to tell them apart; taking the element from a side places it under that side’s owners. resolvedNames names them.

Array<string>
source
required

What the branch merged from holds for the element.

object
present
required

Whether the branch holds the element at all.

boolean
type

The element’s type on that branch, absent when it does not hold the element. An element the two branches hold as different types is resolved by taking one side whole.

string
owners
required

The ids of the elements that own it on that branch, in id order. Empty for the model’s root, and for an element the branch does not hold. Two branches that placed one element under different owners show it here, with nothing among its fields to tell them apart; taking the element from a side places it under that side’s owners. resolvedNames names them.

Array<string>
fields
required

Every attribute and relation the target’s and the source’s version hold differently, attributes first and each kind by key. A relation counts as held differently when its groups or the ownership of its references differ too, even where its target ids read the same. A side that does not hold the element has no values, so every field the other side holds is listed. Empty when the two versions differ in nothing a field carries, such as their type or their owners alone. A pinned-differently conflict lists the pin alone, as one field, @commitId, or @location for an external dependency, whose values are the pins as a reader names them: the version name where the pin is a release, otherwise Snapshot followed by the first eight characters of the pinned commit’s id, and for an external dependency its document, the address or the name an upload arrived under with the first eight characters of its content’s hash. A pin is taken whole: a resolution taking fields of one takes the side it names for that field, and the target’s where it names none.

Array<object>

One attribute or relation of a conflicting element, as the merge base, the target and the source hold it. A value is absent where that version does not hold the key or the element; a stored empty value reads as absent.

object
key
required

The attribute or relation key, as the element stores it.

string
kind
required

Whether the key is one of the element’s attributes or one of its relations.

string
Allowed values: attribute relation
base

The value at the merge base, absent where the base did not hold the element or the key. Shaped as target is.

Array
target

The value on the branch merged into. An attribute’s value is the list of values it stores; a relation’s is the ids of its targets, group after group, in stored order, which resolvedNames names.

Array
source

The value on the branch merged from, shaped as target is.

Array
managedDependencyChanges

On a pinned-differently conflict on the pin of the model’s metamodel or of one of its extensions only: how many managed dependencies of the branch merged into each side’s pin changes. The built-in elements a pin brings along follow the pin, so they are never conflicts of their own.

object
target
required

How many taking the target’s pin changes, which is none, as they already follow it.

integer
source
required

How many taking the source’s pin changes.

integer
reason
required

both-changed: both branches changed the element, differently. changed-and-deleted: one branch deleted it and the other changed it. owner-deleted: one branch created or changed it under an owner the other deleted, which is also the reason when the other deleted the element together with that owner. target-deleted: one branch changed it while it references an element the other deleted. pinned-differently: the element is a dependency, or the model’s metamodel or extension pin, and the two branches pin it at different commits; taking a side takes that side’s pin, and the dependencies it brings along follow it rather than being reported on their own. dependency-removed: the element refers to content of a dependency the other branch removed, so the merged model would hold a reference nothing resolves; a reference that resolved neither at the merge base nor on either branch was already dangling and is not reported. An element is reported once. An inverse relation is written into both of its ends, so one added on one side to an element the other side changed is both-changed. An owned member added on one side to an owner the other side changed is not: member lists combine, and the owner is both-changed only when both sides changed something other than its member lists, differently.

string
Allowed values: both-changed changed-and-deleted owner-deleted target-deleted pinned-differently dependency-removed
mergeBaseId
required

The common ancestor the two branches were compared against.

string format: uuid
targetCommitId
required

The head of the branch merged into, as the merge read it. A resolution sends it as expectedHeadId.

string format: uuid
sourceCommitId
required

The head of the branch merged from, as the merge read it. A resolution sends it as expectedSourceHeadId.

string format: uuid
resolvedNames
required

Display name by element id for every conflicting element, every owner its sides name and every element a relation value of the conflicts names, read on whichever branch holds it, else at the merge base, else in the metamodel. An element only a dependency holds is left out, for the client to name.

object
key
additional properties
string
rejected
required

The resolutions and selection entries the updater refused, one per element, in element-id order, each about the element the resolution or entry names. Empty when no choice was sent, or the merge was refused only for a conflict left without one. At most 20 are reported: once that many have failed, the rest are not tried. An entry with code repair-invalid is not about a choice: it names an element no conflict covers, one the merge itself had to repair to stand beside the chosen versions, which then breaks a rule, the message and property saying which. No resolution is to blame for it, and every other resolution was still applied; the way through is choosing differently around that element, or a commit on either branch.

Array

A resolution the updater refused, in the shape every refusal of a change is reported in: code and message are the updater’s own, and property the attribute or relation it refused where it named one. elementId is always present and is the conflicting element the resolution was for, whichever element the updater was looking at; the message names that one. actionIndex and actionType never appear. Among the codes: element-not-found for a version that relates to an element the merged model does not hold, owner-not-found for an element created under, or kept beneath, an owner that is gone, already-owned and multiplicity-violated as a change made by hand meets them, and updater-rejected for a refusal that names no code of its own, and needs-left-out-element for a selection that keeps a change referring to an element the source added and the selection leaves out, about the referring element. One code names no resolution: repair-invalid, whose elementId is an element the merge repaired rather than a conflicting one, refused because the merged state breaks a rule there.

object
actionIndex

Where the failing action sits in the change’s own action list, counted from zero. Absent, together with actionType, when the fault belongs to the change as a whole rather than to one of its actions.

integer
actionType

The type of the failing action, exactly as the caller sent it, which for a not-stageable refusal is a type no variant answers to. Absent together with actionIndex.

string
code
required

A stable kebab-case constant a client branches on rather than parsing the message.

A refusal of the change as a whole carries one of not-stageable, updater-rejected, write-rejected, chain-too-long, change-too-large or closure-action-must-stand-alone. That list is closed, except where the errors member carrying this error names one more of its own. A refusal about one element or one of its properties carries an element-level code from the same namespace instead, such as element-not-found, owner-not-found, already-exists, unknown-property, invalid-target, multiplicity-violated or invalid-value, and a refused dependency action one of dependency-target-not-found, dependency-exists, dependency-in-use, dependency-connected, members-missing-in-version, dependency-not-direct, dependency-version-differs, dependency-snapshot-missing, dependency-metamodel-not-allowed or dependency-not-found, and a relation a change writes into content of a dependency the model no longer holds, which a rebase meets after the branch removed that dependency, dependency-removed, naming the referring element and the relation. A DEPENDENCY_CONNECT or DEPENDENCY_DISCONNECT may carry copy-not-replaceable, element-connected, element-not-connected or connection-changed, and a write that would set, change or clear an element’s connection other than through those two connection-not-writable. That second set is stable in the sense that a code is never reused for something else, but it is open: new ones are added as refusals learn to name themselves, so a client treats one it does not recognise as a refusal it cannot special-case rather than as a malformed response.

string
message
required

The sentence a human reads. Reworded freely, never parsed.

string
elementId
required

The element the failure is about, where the refusal named one.

string format: uuid
elementName

The name elementId is listed under, where the refusal read it: the connected element a dependency-connected error names, the member a members-missing-in-version error names.

string
property

The attribute or relation the failure is about, where the refusal named one.

string
missingMember

On a members-missing-in-version error: a member a connected element holds by reference that the version its dependency moves to lacks, the element that holds it, and what uses it.

object
memberId
required

The member, an element of the version the dependency leaves.

string format: uuid
memberName
required

The name it is listed under, its type when nothing names it.

string
memberType
required

Its type, as stored.

string
holderId
required

The element that holds the member, one whose type represents a model and that is connected to the dependency.

string format: uuid
holderName
required

The name the element that holds the member is listed under, its type when nothing names it.

string
missingChild

For a member the new version still holds: the owned child of it that the version lacks and the model uses, which makes the member count as missing. Absent for a member the version lacks itself.

object
id
required
string format: uuid
name
required

The name it is listed under, its type when nothing names it.

string
type
required
string
uses
required

The model’s elements referring to the member or one of its owned children, through an authored relation or a term reference, each once per relation, in element id order. The member relation of the element that holds it holds the member rather than using it and is not listed.

Array<object>
object
elementId
required
string format: uuid
elementName
required
string
relation
required

The key the reference is stored under.

string
relationLabel

The name the metamodel shows for the relation; absent when it declares none.

string

Example

{
"type": "https://modeldesk.io/problems/merge-conflict",
"conflicts": [
{
"fields": [
{
"kind": "attribute"
}
],
"reason": "both-changed"
}
]
}

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