Rebase your draft
const url = 'https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/draft/rebase';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"draftHeadId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","drop":["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 POST \ --url https://api.modeldesk.io/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/draft/rebase \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "draftHeadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "drop": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Replay the caller’s staged chain onto the current head of the branch the draft targets, and swap the draft onto the result. Every change is re-applied through exactly the step that staged it, so what a replayed change mints is what staging it on the new head would have minted, and the chain keeps its length and its changeRequestIds.
draftHeadId is required: a rebase rewrites the whole chain, so it must not race a session that is still staging into it.
Nothing is left out unless drop names it. A change the new head refuses is reported with its structured errors and its own staged inputs, nothing is written, and the draft stands exactly where it did; repeating the call answers the same refusal until the caller either stages the change differently or names it in drop. The inputs come back in the shape POST /models/{modelId}/draft/changes takes, so correcting a change means posting it again.
A draft already based on the branch head answers 200 and changes nothing, which is what makes a retry harmless. An empty draft rebases to the branch head with an empty chain.
closureChanged and schemaChanged ride on both the 200 and the conflict report. They say whether the commits the branch gained while the draft was open touched the model’s dependencies or its metamodel pin, which is how a client learns that its view of the closure or of the schema is stale.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”What rebasing a draft takes: the head the caller believes it is rewriting, and the staged changes it wants left out.
object
The draft head the caller believes it is rewriting, compared before anything is replayed. Required, because a rebase rewrites the whole chain and must not race a session that is still staging into it.
The ids of the staged changes to leave out, each one a commit of the draft’s own chain. An id the chain does not hold is a 400 rather than an id quietly ignored. Absent means empty: the ordinary rebase drops nothing.
Example generated
{ "draftHeadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "drop": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”The draft stands on the branch head, on a chain that was replayed onto it
Where a rebase left the draft, and what a client has to do about it.
object
The draft as it now stands, its baselineCommitId the branch head its chain was replayed onto and its changeCount the chain after the drops.
object
The draft’s ref id, which is also what ?ref= takes on the read routes.
The branch the draft lands on.
The target branch’s head the draft started from.
The draft’s own head, equal to the baseline while nothing is staged.
How many changes are staged: the length of the draft’s chain from its head down to its baseline. Computed per read rather than stored, and 0 on a draft nothing has been staged into. A change is the undo grain, so five edits to one element count as five.
For a dataset draft that moves the dataset to another release of its base, that release’s name; the dataset is pinned to it once the draft lands.
A draft’s most recent handoff for review, set by POST /models/{modelId}/draft/handoff. Absent on a draft never handed off. Neither a commit nor a staged change: it goes with the draft when the draft is committed or discarded, and a staged change, an undo or a rebase leaves it in place.
object
The author’s own words about the draft. Written by whoever handed it off, often an agent, so a client renders it as plain text and never as markup.
The draft head when it was handed off. A headCommitId on the draft other than this one means the draft changed after the handoff.
When the draft was handed off.
The changes the caller asked to leave out, in chain order, and empty when none was. The commits are gone from the chain and nothing points at them any more, so what a client shows is what is here.
One staged change a rebase left out because the caller named it. The change’s inputs are deliberately not here: dropping is a decision the caller takes with the conflict report that carried them already in hand.
object
The staged change that was left out.
The changeRequestId it was staged under, absent on a change staged without one.
The change’s own message, absent on a change staged without one.
The deduped, sorted type values of the actions the change recorded, as CommitMetadata carries them. A change that recorded none, because it changed nothing on the base it was replayed onto, answers [].
The move from the head the caller sent to the head the draft now has, in the same envelope GET /models/{modelId}/delta answers, so a client catches up through the machinery it already has rather than reseeding because its chain was rewritten. Its commits are the fresh chain’s, oldest first. A draft that was already on the branch head answers an empty one whose commitId and baselineCommitId are both the head that was sent.
object
Present, and true, only on the answer to a staged change sent with dryRun: true: the change was validated and applied and nothing it would have written was kept. Every id that write would have minted reads as the max UUID ffffffff-ffff-ffff-ffff-ffffffffffff: commitId, each commit’s id, the root’s revisionId and each revision’s id, and in elementRevisionRefs every child revision the change would have renewed. So the envelope names no commit and no revision that exists, and a client that kept one would find it names nothing. Element ids, the commit’s parentId, authorId, message, requestId and actionTypes, and the revisions’ content are what the change would have produced; an element id the caller left to the server is minted again, differently, when the change is staged for real. A dry run of a change that changed nothing minted nothing, and answers the empty delta of the head that was sent. Absent on every envelope describing a move that happened.
The head the envelope brings the caller to.
The baseline, echoed on a delta. Absent on a full-state reseed.
The model’s root element and its revision at the head, so a client sees a root change without scanning revisions.
object
The touched and added element revisions, keyed by element id. Present, and {} when nothing changed.
object
One stored revision of an element, with the revisions of the elements it owns.
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 revision of each owned element, keyed by element id.
object
Elements the baseline has and the head does not. Only on a delta.
The commits walked from the baseline (exclusive) to the head (inclusive). Only on a delta.
A commit as a walk over history lists it: its identity, its provenance and the kinds of action it holds, without the actions themselves.
object
Absent on the initial commit.
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.
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.
The deduped, sorted type values of the commit’s actions. Empty rather than absent on a commit that records none.
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.
Whether the branch changed the model’s dependencies while the draft was open. True also when the gap between the old baseline and the branch head could not be walked, which is the safe answer rather than a claim that nothing changed.
Whether the branch changed the model’s metamodel pin while the draft was open. True also when the gap could not be walked.
Example
{ "delta": { "kind": "delta", "revisions": { "additionalProperty": { "element": { "extensionLayer": [ { "kind": "attribute" } ], "lineage": { "properties": [ { "propertyType": "ATTRIBUTE", "sources": [ { "propertyType": "ATTRIBUTE", "role": "PRIMARY" } ] } ] } } } } }}The body is missing a required member, or drop names a change the draft’s chain does not hold. An unknown id is refused rather than ignored, because a caller that mistyped one would otherwise be told its change was dropped when it is still staged.
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" } ]}The model is theirs to read but not to change. Or the caller is an agent acting for a person who did not grant it the right to commit, and drop names a change staged elsewhere, by the person or another agent, or one the chain does not hold, answered as AgentChangeNotOwnProblem with nothing changed. Or the caller is an agent acting for a person, and the organization that owns the model has not enabled the agent’s AI platform, answered as AgentPlatformNotEnabledProblem. Or the caller is an agent acting for a person, and the request reaches further than the maximum level the organization that owns the model lets agents reach, answered as AgentLevelNotAllowedProblem with nothing written, whatever the agent was granted.
A Problem answered when an agent acting for a person made a request that reaches further than the maximum level the organization that owns the model lets agents reach, set in the organization’s AI agent platforms setting: staging into a draft or working on a branch where the maximum is read, a merge, a landing on a branch that is not an agent’s own, or taking back or landing another’s staged change where it is propose, and anything that reaches people outside the organization where it is below publish. The person’s grant does not lift it, since a grant spans the person’s organizations and the maximum is each organization’s own; an organization admin can raise it. Nothing was written. A change of the setting applies to new requests within a minute.
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
Stable constant a client branches on, which is what tells this 403 from the plain one the same routes answer for a model the caller may not change, and from the refusals a permission the person grants lifts.
A Problem answered when an agent acting for a person reached a model whose owning organization has not enabled the AI platform the agent runs on, which its token names. Model content reaches the platform an agent runs on, so the organization decides: until an organization admin turns the platform on in the organization’s AI agent platforms setting, every route on the model refuses the agent, conditional reads and the events stream included, and the model list and every page that names other models leave the organization’s models out. A change of the setting applies to new requests within a minute; an events stream that is already open ends at its token’s expiry, at most ten minutes later.
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
Stable constant a client branches on, which is what tells this 403 from the plain one the same routes answer for a model the caller may not read.
A Problem answered when an agent acting for a person tried to take back or land a staged change it did not stage itself, the person’s or another agent’s, and the person did not grant it the right to commit: an undo of such a change, a rebase that drops one, or a landing of a draft that holds one, on any branch. A change is the agent’s own when its changeRequestId names the agent’s session. Nothing was changed. Such an agent leaves the change to the person, who decides what becomes of it in the app.
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
Stable constant a client branches on, which is what tells this 403 from the plain one the same routes answer for a model the caller may not change, and from the refusal of a landing elsewhere, which a branch of the agent’s own avoids.
A Problem answered when an organization feature the request needs is not open to the caller on this resource. A 403, as an access refusal is, and told apart from one by its type: a caller refused a feature can still read the resource, and only loses what the feature offers. feature says which: on a draft route it is a feature an action inside the staged change needs, such as alignment for an ALIGNMENT_CREATE, and only that change is refused.
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
Stable constant a client branches on, which is what tells this 403 from an access refusal.
The organization feature the caller lacks, spelled as it is on the organization, such as alignment or catalog. Where any of several features would admit the caller, the first of them is named.
The organization the refusal was judged against. Absent for a resource no organization owns (one a user owns, or one nobody owns), which no organization feature can open: the refusal then names no one.
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
{ "type": "https://modeldesk.io/problems/agent-level-not-allowed"}The model does not exist, answered with the plain problem, or the caller holds no draft on it, answered as RefNotFoundProblem: to a client that is the news a read at a gone ref brings, that the draft it was working in, perhaps committed or discarded in another session, is no longer there.
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
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
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.
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
{ "type": "https://modeldesk.io/problems/ref-not-found"}Either a staged change the caller had not named cannot be applied on the branch head, in which case the problem carries every refusal with the inputs that produced it and nothing was written, or the draftHeadId is no longer the draft’s head, in which case it carries the gap exactly as a refused change does. The two are told apart by type.
A third shape carries neither, under a type of its own. The head is compared before the replay and again against the model that was loaded, but the swap’s own compare-and-set can still lose to a change staged while the replay was running, and that answers the BranchHeadConflictProblem: conflict and no gap, whose branchId is the draft’s own ref id. The draft still holds its old chain, and the commits the lost swap left behind are unreachable and swept as garbage.
A Problem answered when a rebase met staged changes it could not re-apply on the branch head and which the caller had not asked to drop. Nothing was written and nothing was swapped: the draft stands exactly where it did, and repeating the call answers the same refusal until the caller either stages the change differently or names it in drop.
Every refusal rides at once rather than the first one only, because resolving them one per round trip is resolving one per round trip.
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
Stable constant a client branches on, which is what tells this 409 from the stale head the same route answers with. There is no flat code beside it: the codes that matter are the ones inside each conflict’s errors.
One entry per staged change that could not be applied, in chain order.
One staged change a rebase could not re-apply, named well enough for its owner to choose between correcting it and dropping it.
object
The staged change that was refused, and the id to put in drop to leave it out.
The changeRequestId the change was staged under, absent on a change staged without one. What a client recognises its own edit by.
Why the change was refused, in words a caller can show. Reworded freely, never parsed.
The type of each of the change’s inputs, each once and in the order they appear, so a client can say what the change was without reading its inputs. These are staged-action types, the discriminator inputs carry, and not the ModelAction types a commit records; the two overlap without being the same vocabulary.
Every reason the change was refused, in the same shape a refused change carries in ChangeValidationProblem, so the same client code renders both. An entry’s actionIndex counts into the change’s own inputs. Empty when the refusal named no structured reason, in which case description is what there is.
One code reaches a client here and nowhere else: not-replayable, for a stored change that kept no inputs and so has nothing to re-apply on another head. It is reported rather than skipped, because a change silently left out of a rebase is staged work lost, and its owner resolves it by naming the change in drop. Another is met only on a rebase: changed-on-branch, for a change that writes a key of an element the branch gave another value since the draft’s baseline, or deletes an element the branch changed, naming the element and, for a write, the attribute or relation.
One reason a change was not applied, in the form an agent can correct itself from: which action was at fault, what kind of fault it was, and which element and property it was about. The same shape wherever a refusal is reported, so one piece of client code renders all of them.
code and message answer different readers. The code is a stable constant a client branches on without parsing prose; the message is the human sentence and may be reworded at any time. Every member a throw site did not know is left off the wire rather than sent as null, so a reader never has to tell “not applicable” from “unknown”.
object
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.
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.
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.
The sentence a human reads. Reworded freely, never parsed.
The element the failure is about, where the refusal named one.
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.
The attribute or relation the failure is about, where the refusal named one.
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
The member, an element of the version the dependency leaves.
The name it is listed under, its type when nothing names it.
Its type, as stored.
The element that holds the member, one whose type represents a model and that is connected to the dependency.
The name the element that holds the member is listed under, its type when nothing names it.
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
The name it is listed under, its type when nothing names it.
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.
object
The key the reference is stored under.
The name the metamodel shows for the relation; absent when it declares none.
The change’s own resolved inputs, every id it created already written into them, in the shape POST /models/{modelId}/draft/changes takes. Correcting the change means posting these back, amended. The exceptions are the actions stored in the form they resolved to: a paste, as the subtree it copied, under the type ELEMENT_PASTE_RESOLVED, and a dependency’s creation and repin, as the target and pin they were resolved against, under DEPENDENCY_CREATE_RESOLVED and DEPENDENCY_UPDATE_RESOLVED (a repin keeping members of connected elements as copies under DEPENDENCY_UPDATE_KEEPING_COPIES_RESOLVED, with the copy ids and the references left out), and an element’s disconnection from its dependency, as the members, the copy ids and the references left out it was resolved to, under DEPENDENCY_DISCONNECT_RESOLVED, whose droppedReferences names each reference the disconnection left out. Those forms are refused as not-stageable when posted back: re-staging one means sending its request again, a paste, a DEPENDENCY_CREATE or DEPENDENCY_UPDATE naming the target, or a DEPENDENCY_DISCONNECT naming the element. They are the draft owner’s own uncommitted edit and are served to nobody else: the draft is resolved from the caller’s identity and never from an id in a request.
One staged edit, discriminated by its own type. Each variant wraps the payload its per-action endpoint already accepts, so an edit has one request shape however it is made: the ids the edit is addressed by, and then at most one payload property. A layout rule and a hierarchy group are owned by a diagram and addressable only through it, so those variants name the diagram beside the child; a template instance is addressed by its template and its root element, so materializing one names both beside the diagram it becomes.
The listed types are the whole of what this route stages. A type outside them is not a malformed body and is not ignored: it is read, and the change is refused with the ChangeValidationProblem, carrying one error with the code not-stageable, the action’s actionIndex and the actionType that was sent, so the caller learns which of its actions to drop. Every other write path keeps its own endpoint and commits directly: an external dependency, the metamodel pin, a base model and a release among them. Diagrams, namespaces, attribute templates and internal dependencies keep theirs as well, for a caller that does not stage.
A paste is staged as its request, ELEMENT_PASTE, and stored as the subtree it resolved to, which a draft’s micro-commit keeps under the type ELEMENT_PASTE_RESOLVED. A dependency’s creation and repin are staged as DEPENDENCY_CREATE and DEPENDENCY_UPDATE and stored as what they resolved to against the model they pin, under DEPENDENCY_CREATE_RESOLVED and DEPENDENCY_UPDATE_RESOLVED, a repin keeping members of connected elements as copies under DEPENDENCY_UPDATE_KEEPING_COPIES_RESOLVED. The disconnection of an element from its dependency is staged as DEPENDENCY_DISCONNECT and stored, with the id of every copy it writes, under DEPENDENCY_DISCONNECT_RESOLVED. Those stored forms are not among the listed types: posted to this route they are refused with not-stageable like any other type outside them, because accepting one would skip the read that produced it, the paste’s source read and metamodel check, or the authorized read of the model a dependency pins.
- ELEMENT_CREATE
- ELEMENT_UPDATE
- ELEMENT_DELETE
- ELEMENT_BULK_UPDATE
- ELEMENT_MOVE
- RELATION_MEMBERSHIP_UPDATE
- NAMESPACE_CREATE
- NAMESPACE_UPDATE
- NAMESPACE_DELETE
- ALIGNMENT_CREATE
- LAYOUT_RULE_CREATE
- LAYOUT_RULE_DELETE
- LAYOUT_RULE_MOVE
- HIERARCHY_GROUP_CREATE
- HIERARCHY_GROUP_UPDATE
- HIERARCHY_GROUP_DELETE
- HIERARCHY_GROUP_MOVE
- DIAGRAM_CREATE
- DIAGRAM_UPDATE
- DIAGRAM_DELETE
- DIAGRAM_MATERIALIZE
- ELEMENT_PASTE
- DEPENDENCY_CREATE
- DEPENDENCY_UPDATE
- DEPENDENCY_DELETE
- DEPENDENCY_CONNECT
- DEPENDENCY_DISCONNECT
- TEMPLATE_CONFIG_UPDATE
- TEMPLATE_ENTRY_CREATE
- TEMPLATE_ENTRY_UPDATE
- TEMPLATE_ENTRY_DELETE
Creates an element, with the elements nested under it, or adopts an existing one under a new owner when creation.elementId names it.
object
An element to create, or an existing one to adopt under a new owner.
elementId decides which. Set, the payload adopts the element it names and creates nothing, so type and ownedElements are ignored, at every depth. Absent, an element is created and type is required. A payload that adopts has to name its owner at the top level; nested under ownedElements the owner is the parent and the relation it sits under, unless it names another. A creation that names no owner is placed on the model’s root element under its @element relation.
object
The id the new element is to receive. Omitted, the server mints one. Supplying it is what lets a later action of the same staged change name this element; an id that already exists is refused. Only a staged change honours it: the direct element-create route drops it, and every nested one, and mints its own. Distinct from elementId, which names an element that is already there and asks for it to be adopted.
An element of this model to adopt under owner instead of creating one. It has to exist in the state the change is applied to and be this model’s own: one held by a dependency or by the metamodel is answered element-not-found, because it is not this model’s to place. A nested entry whose owner already holds the element through that relation is not adopted again, only listed in the relation it sits under, at its position.
object
The type of the element to create. Required unless elementId adopts one instead.
object
The element’s outgoing relations, keyed by relation name. Each value is the relation’s target refs keyed by group, with @@ naming the group of an ungrouped relation.
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.
Elements to create under this one, keyed by the relation that owns them. Each is a creation in its own right, so id, elementId and further nesting reach every node of the tree. Ignored on a payload that adopts.
object
Applies an update to one element.
object
The attributes and relations to write on one element. An absent key is left as it stands and an empty value drops the key, so a relation is cleared by sending it empty. An update that changes nothing and brings no external element is a no-op rather than an error.
object
object
The relations to write, keyed by relation name. Each value is the relation’s target refs keyed by group, with @@ naming the group of an ungrouped relation.
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.
Whole elements the written relations point at that live outside this model, carried along so the reference resolves to something. Each must have external set to true, or the action is refused with the code invalid-value; one the model already holds is left alone rather than replaced.
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 element’s whole extension layer after the update: the values it holds that its type declares no property for. Absent leaves the layer as it stands, an empty array clears it, and an array replaces it entry for entry, in its order. A metamodel may refuse an entry it cannot write back, with a code of its own naming the entry’s key as the property.
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.
Removes one element and everything it owns.
object
Applies one write across several elements.
object
One write covering several elements, in two forms that may be combined in one request. elementIds with attributes applies identical values to every element named; updates carries its own values per element. Where an element appears in both, its per-element values are merged over the uniform ones, so the specific value wins for the attributes it names.
At least one of elementIds and updates has to name an element, or the action is refused with the code invalid-value. Neither is required on its own, which is why neither is listed as required here. An element whose attributes already hold the given values is left out, and a bulk update that changes no element at all commits nothing.
object
The elements that all receive attributes.
The values every element in elementIds receives. Ignored when elementIds is empty.
object
Values for one named element each, for a write where every element receives its own.
Attribute values destined for one named element, as carried by ModelElementBulkUpdate.updates.
object
object
Moves elements to another owner.
object
Moves elements out of the owners they sit in and into one new owner.
object
The elements to move, each named with the owner it is being taken out of.
One element of a move, with the owner it is being taken out of.
object
object
object
Where the moved elements land among the target’s existing children, counted from zero. Omitted, they are appended. Refused with the code invalid-position where a position cannot apply: on a relation the metamodel orders alphabetically, and on a move whose elements do not all land in one group.
Changes which elements point at one target through one forward relation.
object
A membership change on one forward relation, expressed from the target side. At least one of addSourceElementIds and removeSourceElementIds has to name a source, or the update is refused with the code invalid-value. A source already in the requested state is left alone, and an update that changes no source at all commits nothing.
object
The forward relation to write, named in its forward direction, the one the source elements hold, not the derived field the change was made from.
The element gaining or losing membership. May live in a dependency, subject to the relation’s own origin constraint.
Source elements that gain the target. Each must belong to this model.
Source elements that lose the target. Each must belong to this model.
Creates a namespace under the model’s root.
object
object
The id the new namespace is to receive. Omitted, the server mints one. An id that already exists is refused.
Whether the new namespace is the model’s default. Omitted or false, it is created carrying no default marker at all rather than an explicit false.
Applies an update to one namespace.
object
object
Whether the namespace is the model’s default. Omitted, it keeps the default it has; false clears it.
Removes one namespace.
object
Gives the model its alignment: the pair of internal dependencies whose elements are linked against each other. A model has at most one, so a second creation is refused, including a second one in the same change. Refused with 403 unless the model’s owning organization has the alignment feature.
object
object
The id the new alignment is to receive. Absent, the server mints one; an id that already exists is refused. The direct endpoint honours it as well.
Appends a layout rule to the end of a diagram’s layout-rule relation. The payload is the rule itself, discriminated by its own @type; its id is optional, and absent the server mints one. The diagram must exist in the state the change is applied to: one staged earlier in the draft or in the same change counts, while one created on the branch after the draft’s baseline is an ordinary element-not-found until the draft is rebased.
object
object
object
Removes one layout rule from the diagram that holds it. A rule some other diagram holds is not found rather than silently removed.
object
Moves one layout rule to another position within its diagram’s layout-rule relation. It records the LAYOUT_RULE_UPDATE action, which is why the staged type is its own name: a rule has no update operation, and LAYOUT_RULE_UPDATE is what a move records.
object
object
Appends a hierarchy group to the end of a diagram’s hierarchy-group relation. The payload’s id is optional, and absent the server mints one. Each root element carries at most one group, so a second group on one root is refused, including a second one in the same change.
object
object
Absent on a creation whose id the server is to mint, and on an update, whose target is named beside it. Always present on a group that exists.
How many siblings spread to the left of the root. Omitted, none.
How many siblings spread to the right of the root. Omitted, none.
Replaces one hierarchy group’s properties in place, keeping its position on the diagram. The payload replaces them wholesale, so an id inside it is ignored: hierarchyGroupId names the group that is written.
object
object
Absent on a creation whose id the server is to mint, and on an update, whose target is named beside it. Always present on a group that exists.
How many siblings spread to the left of the root. Omitted, none.
How many siblings spread to the right of the root. Omitted, none.
Removes one hierarchy group from the diagram that holds it. A group some other diagram holds is not found rather than silently removed.
object
Moves one hierarchy group to another position within its diagram’s hierarchy-group relation. It records the HIERARCHY_GROUP_UPDATE action, the same one an update records from a different payload, which is why the staged type is its own name.
object
object
Creates a custom diagram under the model root, with the empty element set it starts out with. The payload’s id and elementSetId are optional, and absent the server mints them; sent, they let a later action of the same change address the diagram. A diagram with a blank name is refused with the code diagram-name-required; one with no name at all is refused as a malformed request.
object
object
The new diagram’s id. Honored by a staged change, which mints one when it is absent; the diagram route mints its own and ignores this.
The id of the element set the new diagram starts out with. Honored by a staged change, which mints one when it is absent; the diagram route mints its own and ignores this.
What the diagram shows, one text per language and at most one without; absent or empty for none. Each text is stored stripped and one that is then empty is dropped. A second value in one language (or a second without one), a language that is not a language tag, a text over 4000 characters, or more than 8 values is refused.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
Applies a partial update to one diagram, with the same PATCH semantics as the diagram’s own update route: an absent field is left as it is and a null one is cleared. A field a template-backed diagram takes from its template, or a filter too large to store, is refused with the code invalid-diagram-update. An update that changes nothing records nothing.
object
object
Replaces the description whole (PATCH semantics: absent leaves it unchanged, an empty list or null clears it). Each text is stored stripped and one that is then empty is dropped. A second value in one language (or a second without one), a language that is not a language tag, a text over 4000 characters, or more than 8 values is refused. Not supported on a template-backed diagram.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
Moves one element of a custom diagram’s primary element set to another place in its order, the order its element list shows and its layout follows. Applied after the update’s additions and removals. An element the set does not hold, or one placed before itself, is not moved; an anchor the set does not hold, or none, puts the element last. Not supported on a template-backed diagram.
object
The element it goes before; absent puts it last.
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
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
Whether the diagram leaves the model (PATCH semantics: absent leaves it unchanged, null returns it to the default, which is published). Allowed on a template-backed diagram as well as on a custom one.
Removes one diagram, with its element set, layout rules and hierarchy groups.
object
Materializes a template instance into a stored diagram, with the layout rules and hierarchy groups it starts out with. It records the DIAGRAM_CREATE action, which is why the staged type is its own name. diagramId, and each rule’s and group’s id, are optional, and absent the server mints them; sent, they let a later action of the same change address what this one creates. elementSetId is accepted and unused, since a template-backed diagram takes its elements from its template and holds no element set. An instance is materialized once: a second materialization is refused with the code already-materialized, its elementId naming the diagram that already backs the instance.
object
object
object
object
object
Absent on a creation whose id the server is to mint, and on an update, whose target is named beside it. Always present on a group that exists.
How many siblings spread to the left of the root. Omitted, none.
How many siblings spread to the right of the root. Omitted, none.
Whether the stored view leaves the model. Omitted means published. Supplying false with no layout stores the view for the sole purpose of holding it back.
Copies a selection of elements, each with the subtree it owns, out of a model into this one, as POST /models/{modelId}/element-paste does, and records the ELEMENT_CREATE of the first copy. paste.rootIds names the copies of the selected elements, one per entry of paste.elementIds and in the same order, so a later action of the same change can address them; absent, the server mints them. The copy is worked out when the change reaches this action: a paste within the model being changed reads its working state, so it can copy what an earlier action of the change created, and a paste from another model reads that model as the caller sees it, at their own draft of it when they hold one and at its main branch otherwise, never at another user’s draft. A source the caller may not read is refused as element-not-found, with the same message as a model id that does not exist. What is stored is the resolved subtree, every id, regenerated identity value and suffixed name fixed, so a rebase replays the same copy without reading the source again. A paste across metamodels is refused with the code incompatible-metamodel; a root id that does not pair with the selection, or is named twice, with invalid-value; one the target already holds, with already-exists. How many references each paste could not carry over is answered in the Paste-Dropped-References header.
object
object
The selected root elements; their owned subtrees are resolved server-side.
Read only when the paste is staged, as ELEMENT_PASTE on POST /models/{modelId}/draft/changes: the ids the copies of the selected elements are created under, one per entry of elementIds and in the same order, so a later action of the same change can address a copy. Omitted, the server mints them. An element selected twice is copied once, under the id at the position it was first selected at. A list that does not pair one to one with elementIds, or that names an id twice, is refused; so is an id the target already holds. POST /models/{modelId}/element-paste ignores the field and mints every id itself, as its other creations do.
Where the copies land. Omitted pastes them at the model root.
object
CUT records that the caller intends to remove the originals afterwards, which is a separate delete on the source model; the paste itself never removes anything.
Adds a dependency on another model of the organization, as POST /models/{modelId}/dependencies with type: INTERNAL does, and records the DEPENDENCY_CREATE of it. The target is read when the change is staged, through the same authorized read the route makes, and what the dependency needs is fixed then: the commit the pin stands for, the target’s name and metamodel, and an id for every dependency the pinned commit brings along. That is what the draft stores, so a rebase lands the same dependency whatever has since become of the target. A target that does not exist and one the caller may not read are both refused as dependency-target-not-found, with one message; one written in a metamodel this model may not depend on as dependency-metamodel-not-allowed; one the model already depends on directly, at any pin, as dependency-exists; one owned by another organization as operation-not-allowed; and the model itself, or a version name the target has no version under, as invalid-value. A target the model reaches only through another dependency is promoted to a direct one in place: it keeps its own id, id is not used, and the change records a DEPENDENCY_UPDATE of it. A caller therefore finds the outcome by the target’s model id among the root’s dependencies, never by id. Only an internal dependency is staged; an external one is acquired from a location or a document and committed directly. Stands alone in its change.
object
The element id the caller minted for the new dependency, used when the model holds no edge to the target yet.
The model to depend on.
The pin: omitted or @HEAD for the head of the target’s main branch when the change is staged, or the name of one of its versions.
Repins one of the model’s direct internal dependencies, as POST /models/{modelId}/dependencies/{dependencyId} does, and records the DEPENDENCY_UPDATE of it. The new pin is resolved when the change is staged, together with the dependencies the commit it stands for brings along, and that is what the draft stores. A dependency the model does not hold is refused as dependency-not-found, one it holds only as a transitive, an external or a managed dependency as operation-not-allowed, a version name the target has no version under as invalid-value, and a target that can no longer be read as dependency-target-not-found. Stands alone in its change.
When elements connected to the dependency hold members by reference that the new version lacks, or whose owned child the model uses and the new version lacks (named in missingMember.missingChild), the repin is refused as members-missing-in-version, one error per member and holding element, each carrying missingMember (the member, the element that holds it and what uses it), unless keepMissingMembersAsCopies is set. The errors are bounded; past the bound errorCounts gives the total, and POST /models/{modelId}/dependencies/{dependencyId}/version-change-preview lists every one. A version the model holds no readable snapshot of while elements are connected refuses the repin as dependency-snapshot-missing. With it, each such member is kept as an owned copy of the version left, in the element that held it, and the model’s references to it point at the copy; references the copies leave out are counted in the Disconnect-Dropped-References header. Members the new version still holds stay references. A rebase that meets connected elements lacking other members than the change kept copies of refuses it as connection-changed; staging the repin again resolves it afresh.
object
The dependency element to repin.
The new pin: omitted or @HEAD for the head of the target’s main branch when the change is staged, which also refreshes a dependency already at @HEAD, or the name of one of its versions.
Keep the members connected elements hold that the new version lacks as owned copies of the version left, rather than refusing the repin.
Removes one of the model’s direct internal dependencies, as DELETE /models/{modelId}/dependencies/{dependencyId} does, and records the DEPENDENCY_DELETE of it, together with the dependencies it brought along that nothing else needs. A dependency other dependencies still bring along stays as one of theirs. A dependency the model does not hold is refused as dependency-not-found, one it holds only as a transitive, an external or a managed dependency as operation-not-allowed, and one whose content elements of the model still refer to as dependency-in-use, with one error per referring element naming it. Stands alone in its change.
object
The dependency element to remove.
Connects an element whose type represents another model to one of the model’s internal dependencies on that model, and records an ELEMENT_UPDATE naming the element and every element the connection rewrote or removed. Each owned copy choices sets to USE_THEIRS gives way to the named counterpart, which the element then holds by reference; every relation in the model that targeted the copy or one of its owned children targets the counterpart or that child’s counterpart, and the copy is removed with what it owns. A copy no choice names, and one set to KEEP_MINE, stays owned: to replace every copy the preview settles, name each. Never adds a dependency: stage DEPENDENCY_CREATE in a change of its own first. Read POST /models/{modelId}/elements/{elementId}/connection-preview with the same choices to see what it does. Refused with element-connected when the element is connected already; dependency-not-direct when the model only brings the dependency along through another one, so an element connects only to a model the model declares itself (a connection made before this rule still reads as connected); invalid-value when two choices name one counterpart, a choice is for no copy the element owns, or names a counterpart that is none of its copy’s candidates; invalid-value or element-not-found when the dependency is no internal one the root declares with its snapshot held or the element’s type represents no model; and with one copy-not-replaceable error per copy that cannot give way, naming it, when any cannot, with nothing written. Stored as it was sent: the counterparts of a replaced copy’s owned children are matched again whenever the change is applied.
object
The element to connect, one of a type whose metamodel declares representsModel.
The internal dependency element of the model the element represents.
What becomes of each owned copy, keyed by the copy’s id. Omitted reads as none.
object
What connecting an element to a dependency does with one copy the element owns: put the named counterpart in its place (USE_THEIRS, with counterpartId), or keep the copy (KEEP_MINE, without one).
object
The element of the connected model that takes the copy’s place: one of the copy’s candidateIds in the preview. Required with USE_THEIRS, refused with KEEP_MINE.
Disconnects a connected element from its dependency, and records an ELEMENT_UPDATE naming the element, every copy it writes and every element a reference was moved on. Each member the element holds by reference becomes an owned copy of the version depended on, with everything it owns; every relation in the model that targeted a member or one of its owned children targets the copy; the connection is cleared; the dependency stays. A member’s own reference to an element of a model this one does not depend on is left out: how many, per action, in the Disconnect-Dropped-References header, and each named on the stored input. Refused with element-not-connected when the element is not connected. The copies’ ids are fixed when the change is staged and stored under DEPENDENCY_DISCONNECT_RESOLVED; a rebase onto an element connected to another dependency is refused with element-not-connected, and onto one that holds other members by reference, or whose version holds an element no copy id was fixed for, with connection-changed.
object
The connected element to disconnect.
Sets the base IRI the model’s attribute templates share. The container that holds it is created with the first template write, under an id derived from the model’s, so no action names it. The entries the container holds are kept.
object
object
Creates an attribute template entry.
object
object
The id the new entry is to receive. Omitted, the server mints one. An id that already exists is refused.
Replaces one attribute template entry as a whole.
object
Whole-entry replace; all authoring fields are re-sent.
object
Removes one attribute template entry.
object
Whether the branch changed the model’s dependencies while the draft was open. True also when the gap could not be walked, which is the safe answer rather than a claim that nothing changed.
Whether the branch changed the model’s metamodel pin while the draft was open. True also when the gap could not be walked.
A Problem that additionally carries the gap, answered when the draftHeadId a change or an undo was written against is no longer the draft’s head. Listing what landed in between is what makes a retry safe: a caller that finds its own changeRequestId in commits knows its change was applied and does not send it twice.
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
Stable constant a client branches on, which is what tells this 409 from the other.
object
The head the caller sent, which is no longer the current one.
The head as it now stands. Absent when the follow-up read that fills it did not succeed.
Whether the head the caller sent is still on the chain below the current one. False when an undo popped it, a rebase rewrote the chain, or a commit closed the draft. A client that reads false reseeds instead of replaying.
The chain from the current head down to the head the caller sent, exclusive, newest first. Absent when ancestor is false, because there is then no gap to list.
A commit as a walk over history lists it: its identity, its provenance and the kinds of action it holds, without the actions themselves.
object
Absent on the initial commit.
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.
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.
The deduped, sorted type values of the commit’s actions. Empty rather than absent on a commit that records none.
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.
A Problem answered when a gated write lost its compare-and-set: the head the write was written against was no longer the ref’s head when the write reached it, so nothing was written. It names the ref and the two heads, and carries no gap.
It stands in for DraftHeadConflictProblem where the gap cannot be walked: a landing whose draft was discarded while the refusal was being built, and a rebase whose swap lost to a change staged while the replay was running. On a rebase the conflict.branchId is the draft’s own ref id rather than the branch it targets, because the ref that moved is the draft.
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
Stable constant a client branches on, which is what tells this 409 from the others the same routes answer with.
Always the sentence Branch HEAD has advanced since this commit's baseline., whichever ref moved. What a human reads, never parsed.
object
The ref whose head the write was gated on.
The head the write was written against, which is no longer the current one.
The head as it now stands. Absent when the follow-up read that fills it found no ref, which is what a discarded draft leaves behind.
Example
{ "type": "https://modeldesk.io/problems/rebase-conflict", "conflicts": [ { "inputs": [ { "type": "ELEMENT_CREATE" } ] } ]}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" } ]}