Skip to content

List an organization's public datasets

GET
/public/catalog/{orgSlug}/datasets
curl --request GET \
--url 'https://api.modeldesk.io/public/catalog/example/datasets?offset=0&limit=50&kind=VALUE_LIST'

A page of the organization’s publicly visible datasets, sorted by name without regard to case. A dataset is publicly visible when it has a release, it is switched on for the catalog (publicRecords), it is shared, and its organization has a slug, an active subscription and the catalog feature. Each card carries what the dataset says about itself as it stands now, its kind of resource, its latest release, and how many entries that release froze conforming, the entries a reader without a session is shown; the page says how many of all the organization’s public datasets are of each kind. Needs no sign-in, and a token does not widen the answer. Counting reads the releases’ entries, so a page runs under the cap on concurrent public reads.

orgSlug
required
string
offset
integer
0

How many datasets to pass over; a negative one reads as none.

limit
integer
default: 50 <= 100

How many datasets at most, held to 100; one below 1 reads as the default.

kind

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.

string
Allowed values: VALUE_LIST METADATA_RECORDS

Narrows the page, and its total, to the public datasets of one kind of resource; a dataset that states no kind, or one this backend does not know, is a VALUE_LIST, as kindCounts counts it. kindCounts still counts every public dataset of the organization. Absent for every kind; any other value answers 400.

The organization and a page of its public datasets. Carries Cache-Control: no-store: a dataset taken out of the catalog is gone from the next answer, with no copy left to serve. A kind the organization has no public dataset of is an empty page, while it has public datasets of another kind.

Media typeapplication/json

One page of an organization’s public datasets, sorted by name.

object
organization
required

An organization as the public catalog names it. The slug is its address on the shared catalog host; the hosting and namespaces are the inputs of its address map, from which a page turns an element’s IRI into the address the organization serves it at.

object
id
required
string format: uuid
slug
required
string
name
required
string
hosting
required

Where an organization’s catalog is served: {"shared": true} on the shared catalog host, or {"shared": false, "primaryDomain": ..., "domains": [...]} on the organization’s own domains.

object
shared
required
boolean
primaryDomain

The active domain that carries the organization page; absent when shared.

string
domains

Every active domain, the primary among them; absent when shared.

Array<string>
namespaces
required

The namespaces the organization publishes under, oldest first; empty when it registered none.

Array<object>

A namespace an organization publishes under.

object
iriPrefix
required

An absolute http(s) IRI prefix ending in /, as the administrator registered it.

string
isDefault
required

Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.

boolean
items
required
Array<object>

One public dataset on its organization’s public page: what it says about itself as it stands now, and its latest release.

object
id
required
string format: uuid
name
required
string
descriptions
required

One description per authored language; the reader picks.

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
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
publisher

The publisher’s name; omitted when none is stated.

string
latestRelease
required

A release of a model. Every version is a release, so the latest version is the latest release; recency is createdAt, never the name.

object
versionId
required
string format: uuid
name
required
string
createdAt
required
string format: date-time
commitId
required
string format: uuid
kind

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.

string
Allowed values: VALUE_LIST METADATA_RECORDS
recordCount

How many entries the latest release froze conforming: the entries a reader without a session is shown. A backend that does not count them leaves it out.

integer format: int64
total
required

How many public datasets the organization has, across every page; of the kind asked for, where a kind narrows the page.

integer format: int64
offset
required

Where this page starts among them.

integer
limit
required

The most one page holds, after the maximum of 100 is applied.

integer
kindCounts

How many of the organization’s public datasets, across every page, are of each kind of resource, keyed by the kind (VALUE_LIST, METADATA_RECORDS), every kind this backend knows named, with zero for none; every public dataset of the organization is counted, whatever kind narrows the page, so without one the counts add up to total. A dataset that states no kind, or one this backend does not know, counts as a VALUE_LIST. A backend that does not count them leaves it out.

object
key
additional properties
integer format: int64

Example

{
"items": [
{
"kind": "VALUE_LIST"
}
]
}
Cache-Control
string

The kind is not one of the kinds of dataset.

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"
}
]
}

No organization carries the slug, the one that does publishes nothing, or it has no public dataset of any kind; the three are indistinguishable.

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"
}
]
}

As many public reads run as the platform runs at once; try again in a moment.

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"
}
]
}