Skip to content

List dataset versions

GET
/datasets/{datasetId}/versions
curl --request GET \
--url 'https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/versions?limit=10' \
--header 'Authorization: Bearer <token>'

A page of the dataset’s releases, newest first.

datasetId
required
string format: uuid
limit
integer
default: 10
cursor
string format: uuid

OK

Media typeapplication/json
object
items
Array<object>

One release of a dataset: a name, what it says about itself, and the commit it was cut at. The rows it froze are a paged read at the release, which is the same query a read of the branch is.

object
id
required
string format: uuid
datasetId
required
string format: uuid
name
string
description
string
commitId
string format: uuid
createdAt
string format: date-time
changedFromBase

For a release of a dataset made from a base, how many of its rows differ from the base release they were judged against, counted once when the release was cut. Absent for any other release, and where the rows could not be compared.

integer format: int64
backingModelRef

The state of the backing model the release’s rows were judged against, as the dataset was pinned when the release was cut. Recorded for a release of the dataset’s head; absent for a release of an older commit, which a repin may have moved past.

object
modelId
required
string format: uuid
versionName
required

A release name, or @HEAD for a snapshot of the working copy.

string
versionId

The release the name resolved to; absent for a snapshot of the working copy.

string format: uuid
commitId
required
string format: uuid

Example generated

{
"items": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"datasetId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"commitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"createdAt": "2026-04-15T12:00:00Z",
"changedFromBase": 1,
"backingModelRef": {
"modelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"versionName": "example",
"versionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"commitId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
}
]
}

Dataset not found

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