Update a dataset
const url = 'https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","accessMode":"SHARED","namedBy":"example","recordBaseIri":"example","recordIriPropertyId":"example","publicRecords":true,"summaryPropertyId":"example","codePropertyId":"example","levels":"ALL"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "accessMode": "SHARED", "namedBy": "example", "recordBaseIri": "example", "recordIriPropertyId": "example", "publicRecords": true, "summaryPropertyId": "example", "codePropertyId": "example", "levels": "ALL" }'Changes the parts of a dataset that do not affect what it conforms to. The backing release moves through its own endpoint and the data entity type not at all, because every row is keyed by that type’s properties. An omitted field is left unchanged.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).
The source element id of a text property of the data entity type to name entries by, or an empty string to name them by none. A property that is not a text property of the type at the pinned release is a 400 naming the ones that are.
The absolute IRI entries are given IRIs under, ending in / or #, or an empty string to state none. One that is not an absolute IRI, or does not end in either, is a 400; the base the dataset already holds, sent back unchanged, is not.
The source element id of a text property of the data entity type to make entry IRIs from, or an empty string to make them from the type’s identity. A property that is not a text property of the type at the pinned release is a 400 naming the ones that are.
Whether to show the dataset and its entries in the organization’s public catalog. Switching it on is a 400 unless the dataset, after the edit, has a recordBaseIri and a namedBy and is shared; while it is on, clearing either of the two is a 400 as well.
The source element id of a text property of the data entity type that sums up an entry on the public pages, shown as the definition on a value list’s, or an empty string to take the default (the one text property outside the identity and namedBy, where exactly one is left). A property that is not a text property of the type at the pinned release is a 400 naming the ones that are; one the dataset already holds, sent back, is not. Kept across a version change; the default applies while the version in use lacks it.
The source element id of a value property of the data entity type that a value list’s public pages show an entry by as its code, or an empty string to take the default (the identity, where it is one value property). A property that is not a value property of the type at the pinned release is a 400 naming the ones that are; one the dataset already holds, sent back, is not. Kept across a version change; the default applies while the version in use lacks it.
Which rows of a dataset made from a base a value may point at: ALL, or MOST_SPECIFIC for only the rows with nothing under them. A 400 for a dataset made from no base.
Responses
Section titled “Responses”OK
object
object
USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.
The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.
Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).
object
The backing model’s metamodel, denormalized; a seat is held per metamodel.
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 data entity type of the backing release’s schema whose entries this dataset holds.
The text property of the data entity type, declared on it or a supertype, that names an entry wherever it is shown from outside its own row. Absent when none is set.
The absolute IRI the entries are given IRIs under when they are written as RDF. Absent when none is set, in which case they are given IRIs under urn:modeldesk:dataset:{id}/.
The text property of the data entity type, declared on it or a supertype, whose value an entry’s IRI is made from. Absent to make it from the type’s identity. Kept when the dataset moves to a release that no longer declares it, whose entries are then given the IRIs made from the identity.
Whether the dataset and its entries are shown in the organization’s public catalog. Alone it publishes nothing: a dataset is publicly visible once it also has a release, is shared, and its organization publishes (a slug, an active subscription and the catalog feature).
What a dataset is to the public catalog, which picks its public pages: a value list is one table with a page per value; metadata records are descriptions. Absent, or a value a client does not know, reads as VALUE_LIST.
The text property that sums up an entry on the public pages, shown as the definition on a value list’s. Absent to take the default. Kept when the dataset moves to a version that no longer declares it, where the default applies.
The value property a value list’s public pages show an entry by as its code. Absent to take the default. Kept when the dataset moves to a version that no longer declares it, where the default applies.
What a dataset made from a begrippenkader or another concept model was made from: a scope its binding offers and the element picked for it. The release is the dataset’s backing pin. Absent on a dataset made from no base.
object
Which rows a value may point at, unless a row says otherwise.
The namespaces the release the dataset is pinned to declares, by which a value that is an IRI in one of them is shown as prefix:localName. Taken when the dataset is made and again when it moves; the values themselves stay full IRIs.
object
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 @HEAD dependencies, by dataset id, whose target has written or removed an entry on its main since the commit pinned, so that moving the pin would take those changes in. Said only by the read of one dataset, and absent when no pin is behind.
The models this dataset’s rows may point into, each at the state a reference to it or to one of its elements is read at. Absent when none is declared.
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
The model dependencies, by model id, that a newer state of their model has passed: a release made after the one pinned, or for a @HEAD pin a head moved since or a release cut where the pin stands. Said only by the read of one dataset, and absent when no pin is behind.
Whether the entries of the branch read are still to be judged against the pins it stands on: a change of its dependencies or of its backing release was recorded, by a change of either or by a merge, and the judging after it did not finish, or judged pins that had moved on by its end. A branch made from such a branch says so too, and a release made while main does records no backing version. POST /datasets/{datasetId}/rows:check judges them. Said only by the read of one dataset, and absent when every entry stands judged.
Whether the backend that answered writes the parts an entry holds inside itself; where it does not, a client shows such a property as references. Every current backend writes them, so the read of one dataset always says true. Said only by the read of one dataset.
What judging the entries of the branch again found, on the answer to a change of a dataset or a model its entries refer to: how many no longer fit, and which of those fitted before. A change that left the versions as they were and judged nothing answers with nothing found. Absent everywhere else, and from a backend that does not answer it.
object
The first few rows that do not conform, at most twenty of them.
How many rows conform but carry warnings, such as a value outside a list that is not strict.
How many of the rows that do not conform conformed before the pass, or carried no verdict. A row that did not conform before either is not counted, whatever else the pass found wrong with it. Absent from a backend that does not tell them apart.
The first few of the rows counted in rowsNewlyFlagged, at most twenty of them.
Example
{ "owner": { "type": "USER" }, "accessMode": "SHARED", "resourceKind": "VALUE_LIST", "base": { "levels": "ALL" }}Bad request
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}Not authorized to update this 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" } ]}Not found
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.
The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.
Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}