Read what a release of a dataset would freeze
const url = 'https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/release-preview';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/release-preview \ --header 'Authorization: Bearer <token>'What a release cut now at main’s head would freeze, for the dialog that cuts one: how many entries main holds, how many of them carry a verdict with an error and how many carry none, the first of those entries, read with the counts, and the pins main’s head stands on. A release freezes the verdict main holds for each entry, and the public catalog shows only the entries a release froze conforming. Asked only by a caller who may cut the release, as the dataset’s write policy decides. Nothing is cut or written.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
What a release of a dataset cut now would freeze, said before it is cut.
object
How many entries main’s head holds.
How many of them carry a verdict with an error.
How many of them carry no verdict.
The first of the entries with problems or unchecked, in row-id order, at most 20: the ones a release would keep out of the public catalog.
A row as a state holds it: what it carries, and how it stands against the dataset’s data schema. The verdict is the state’s rather than the row’s — a repin re-judges a branch’s rows, and a release keeps the verdict it froze.
object
The row’s stable identity, minted once and surviving every edit.
Value-property source element id to the terms the row holds for it.
object
Reference-property source element id to the rows it points at.
object
A pointer to a row, in this dataset or in one this dataset declares a dependency on.
object
Reference-property source element id to the models, model elements and datasets it points at, for a property whose target type is represented by things the platform holds. Such a property holds these and never row references. Absent when the row holds none.
object
A pointer to a thing the platform holds: a model, an element of a model, or a dataset. A model or element is read at the state the dataset pins the model at; a dataset as it stands.
object
The model, for a model or an element; the dataset, for a dataset.
The element of the model; present exactly for an ELEMENT.
Containment-property source element id to the parts the row holds inside itself, for a property whose target type has no identity of its own (a contact point, a period). Such a property holds parts and never row references. Absent when the row holds none. A write that leaves parts out keeps the parts the row holds, as a client that knows nothing of parts writes every row; one that sends it, empty included, leaves the row holding what it sent.
object
One part a row holds inside itself: an occurrence of a containment property whose target type has no identity of its own. Its maps are keyed as a row’s are, and it holds parts of its own to whatever depth the model nests them.
object
The part’s identity inside its row, so a change to one part is told from a change to another. Send it back unchanged on every write of the row; a part written without one gets a new one, and two parts of one row under one id are a 400.
Value-property source element id to the terms the part holds for it.
object
Reference-property source element id to the rows it points at.
object
A pointer to a row, in this dataset or in one this dataset declares a dependency on.
object
Reference-property source element id to the models, model elements and datasets the part points at, for a property whose target type is represented by things the platform holds. A part is written whole, so a part sent without them holds none. Absent when the part holds none.
object
A pointer to a thing the platform holds: a model, an element of a model, or a dataset. A model or element is read at the state the dataset pins the model at; a dataset as it stands.
object
The model, for a model or an element; the dataset, for a dataset.
The element of the model; present exactly for an ELEMENT.
Containment-property source element id to the parts this part holds.
object
The base concept the row was made from; absent on a row the dataset added itself.
object
Why the row differs from its base, keyed by a column’s source element id or row for the row as a whole. Never a column: not judged as data.
object
Whether a value may point at the row, overriding the dataset’s levels; absent to follow them.
Absent when nothing has judged the row, which is not the same as judged clean.
object
Whether no violation is an error. A row whose violations are all warnings is valid and still carries them.
Absent when nothing is wrong with the row.
One way in which a row does not conform.
object
The schema property’s source element id — the same key the row’s own maps use, so a caller marks the offending cell without a lookup. Absent for a violation about the row itself. For a violation inside a part, the row’s column that holds the part, with path leading from there to the field.
Which value of the property; absent when the violation is the property’s as a whole. For a violation inside a part, which value of the field path ends at.
For a violation inside a part, the way from propertyId down to the field, outermost part first: contactpunt[2].email is one step, the part at index 1 and its property email. Absent for a violation of one of the row’s own fields.
One step of a violation’s way into a part: the part at a position among the parts of the property reached so far, and the property of that part the way goes on to.
object
The part’s position among that property’s parts, from 0.
The part’s property the way goes on to; absent where the violation is about the part.
How much the violation weighs; the row is kept and flagged either way. A value outside a code list is a WARNING unless the list is marked strict; everything else is an ERROR.
For a reference property, which of its lists the violation is about: true for its references to models, model elements and datasets (platformRefs), which valueIndex then counts in; false for its references to rows (refs) where that needs saying beside the other. Absent for its references to rows, as every violation from before the other list existed reads. Inside a part as at the row: beside path, it says which list of the field path ends at.
Present only when the read asked for it, on a dataset made from a base.
object
object
object
A pointer to a row, in this dataset or in one this dataset declares a dependency on.
object
The state of a model a dataset takes its shape from: a release, or a snapshot of the model’s working copy at a commit. The name is what an author picks; the version and commit are what it resolved to when the pin was written.
object
A release name, or @HEAD for a snapshot of the working copy.
The release the name resolved to; absent for a snapshot of the working copy.
The datasets main’s head refers to, each at the state it is pinned to; absent when none.
A dataset this dataset’s rows may reference, pinned as @HEAD or a release name. The version and commit are what the selector resolved to when the pin was written; versionId is absent for a @HEAD pin, because a working head is not a release.
object
The models main’s head refers to, each at the state it is pinned to; absent when none.
A model this dataset’s rows may point into, pinned as @HEAD (a snapshot of its working copy) or a release name. The version and commit are what the selector resolved to when the pin was written; versionId is absent for a @HEAD pin.
object
Example
{ "keptOut": [ { "platformRefs": { "additionalProperty": [ { "kind": "MODEL" } ] }, "parts": { "additionalProperty": [ { "platformRefs": { "additionalProperty": [ { "kind": "MODEL" } ] } } ] }, "validation": { "violations": [ { "code": "TOO_FEW_VALUES", "severity": "WARNING" } ] }, "baseState": { "state": "AS_IN_BASE" } } ]}The caller may not cut a release of the dataset
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" } ]}Dataset not found
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}