Get what a dataset says about itself
const url = 'https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/metadata';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/metadata \ --header 'Authorization: Bearer <token>'The dataset’s descriptive record for the catalog: descriptions, keywords, themes, status, licence, landing page, identifier, canonical IRI and the agents behind it, in the types and from the closed lists a model’s metadata uses. A setting of the dataset, read as it stands now; a dataset nobody described gets a record with nothing stated, not a 404. A dataset is always reference data, so the record states no kind of resource. Whoever may read the dataset may read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
What a dataset says about itself for the catalog: the descriptive fields of a model’s metadata, from the same closed lists, without contributors, distributions or a public flag, and with the dataset’s kind of resource. A record that says nothing has every list empty.
object
What the dataset is to the public catalog, a value of datasetKinds from /public/metadata/vocabularies (VALUE_LIST, METADATA_RECORDS). A read names the dataset’s kind as it is stored, VALUE_LIST for a dataset that states none; a kind a later version added is named as stored, while the dataset is shown as a VALUE_LIST. A write naming a listed kind changes it, a write naming none or the kind as stored leaves it as it is, and a write naming any other value is refused with 422 naming resourceKind. Kept as a field of the dataset beside the record, not inside it, and left out of the record a public read serves, which names the kind on its own.
One text per language.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
Free-text tags; a keyword may repeat a language or carry none.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
EU data-theme IRIs from the shipped list.
A licence IRI from the shipped list.
The dataset’s stable external identifier.
The dataset’s stable identity.
object
The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.
The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.
A person or organization the metadata names. Which role it plays is the list it is in; the same agent named as publisher and as maintainer is two entries.
object
The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.
The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.
A person or organization the metadata names. Which role it plays is the list it is in; the same agent named as publisher and as maintainer is two entries.
object
The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.
The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.
Example
{ "status": "UnderDevelopment"}The dataset does not exist, or is 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 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" } ]}