Skip to content

Get what a dataset says about itself

GET
/datasets/{datasetId}/metadata
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.

datasetId
required
string format: uuid

OK

Media typeapplication/json

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
resourceKind

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.

string
descriptions
required

One text per language.

Array<object>

One language-tagged text; lang is null for a text without a language.

object
lang

A language tag such as nl or en.

string
nullable
value
required
string
keywords
required

Free-text tags; a keyword may repeat a language or carry none.

Array<object>

One language-tagged text; lang is null for a text without a language.

object
lang

A language tag such as nl or en.

string
nullable
value
required
string
themes
required

EU data-theme IRIs from the shipped list.

Array<string>
status
string
nullable
Allowed values: UnderDevelopment Completed Deprecated Withdrawn
license

A licence IRI from the shipped list.

string format: uri
nullable
landingPage
string format: uri
nullable
identifier

The dataset’s stable external identifier.

string
nullable
canonicalIri

The dataset’s stable identity.

string format: uri
nullable
publisher
object
id

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.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

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.

string
nullable
maintainers
required
Array<object>

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
id

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.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

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.

string
nullable
contactPoints
required
Array<object>

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
id

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.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

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.

string
nullable

Example

{
"status": "UnderDevelopment"
}

The dataset does not exist, or is not the caller’s to read.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}