Skip to content

Preview a move to another release of a dataset's base

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

What moving the dataset to the named release of its base would change, worked out from three states: the release the branch is pinned to, the release named, and the rows of the branch, main unless one is named. Concepts are matched across the releases by element, else by IRI. The items come most severe first, each with what the move does unless you choose otherwise: a concept gone from the scope (kept by default, with the rows dropped with it and how many rows of the datasets that declare this one use them), a column both sides changed (resolved when alike, else the dataset’s value kept), a column only the release changed (the release’s value taken), and a concept new in the scope (added). Rows the dataset added itself are listed once, unchanged. Computed on every call and stored nowhere.

datasetId
required
string format: uuid
branchId
string format: uuid

The branch whose rows would move, from the release it stands on; main when omitted.

version
required
string

The name of the release to move to.

OK

Media typeapplication/json

What moving a dataset to another release of its base would change.

object
from
required

The release the dataset is pinned to.

string
to
required

The release it would move to.

string
items

What the move changes, most severe first.

Array<object>
object
category
required
string
Allowed values: GONE_FROM_BASE MEETS_YOUR_CHANGE CHANGED_IN_BASE NEW_IN_BASE
conceptId
required

The concept’s element in the release moved to; in the release moved from for a concept that is gone. With columnId, what a decision names the item by.

string format: uuid
rowId

The row made from the concept; absent for a concept new in the base.

string format: uuid
columnId

The column that changed; absent for an item about a whole concept.

string format: uuid
from

What one column holds in one of the three states.

object
values
Array
refs
Array<object>
object
rowId

The row; absent for a concept new in the base that has none yet.

string format: uuid
elementId

The concept the row was made from, or the concept new in the base.

string format: uuid
to

What one column holds in one of the three states.

object
values
Array
refs
Array<object>
object
rowId

The row; absent for a concept new in the base that has none yet.

string format: uuid
elementId

The concept the row was made from, or the concept new in the base.

string format: uuid
current

What one column holds in one of the three states.

object
values
Array
refs
Array<object>
object
rowId

The row; absent for a concept new in the base that has none yet.

string format: uuid
elementId

The concept the row was made from, or the concept new in the base.

string format: uuid
defaultChoice

What the move does unless you choose otherwise; absent for a change both sides made alike.

string
Allowed values: TAKE_BASE KEEP_DATASET
values

For a concept new in the base, what it gives each value column, by column id.

object
key
additional properties
Array
under

For a concept that is gone, the rows dropped with it when it is dropped.

Array<string>
above

For a concept that is gone, the rows its row sits under. Left undecided, it goes when every one of them goes.

Array<string>
usedBy

For a concept that is gone, how many rows of the datasets declaring this one use its row, or a row dropped with it, as a value.

integer format: int64
addedHere

The rows the dataset holds of its own, which the move leaves as they are.

Array<string>

Example

{
"items": [
{
"category": "GONE_FROM_BASE",
"defaultChoice": "TAKE_BASE"
}
]
}

The dataset was made from no base, or the release is the one it is pinned to or the working copy

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

Dataset or release 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"
}
]
}