Preview a move to another release of a dataset's base
const url = 'https://api.modeldesk.io/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/base/move?version=example';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The branch whose rows would move, from the release it stands on; main when omitted.
The name of the release to move to.
Responses
Section titled “Responses”OK
What moving a dataset to another release of its base would change.
object
The release the dataset is pinned to.
The release it would move to.
What the move changes, most severe first.
object
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.
The row made from the concept; absent for a concept new in the base.
The column that changed; absent for an item about a whole concept.
What one column holds in one of the three states.
object
object
The row; absent for a concept new in the base that has none yet.
The concept the row was made from, or the concept new in the base.
What one column holds in one of the three states.
object
object
The row; absent for a concept new in the base that has none yet.
The concept the row was made from, or the concept new in the base.
What one column holds in one of the three states.
object
object
The row; absent for a concept new in the base that has none yet.
The concept the row was made from, or the concept new in the base.
What the move does unless you choose otherwise; absent for a change both sides made alike.
For a concept new in the base, what it gives each value column, by column id.
object
For a concept that is gone, the rows dropped with it when it is dropped.
For a concept that is gone, the rows its row sits under. Left undecided, it goes when every one of them goes.
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.
The rows the dataset holds of its own, which the move leaves as they are.
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
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" } ]}Dataset or release not found
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" } ]}