Move record legacy
POST /v1/organisations/{organisation_id}/workspaces/{workspace_id}/collections/{name}/records/{record_id}/move Deprecated
Moves a record on a board: into a column, which sets the board's group_by field, and between two cards.
Authentication
Send an API key, or an access token from your organisation’s identity provider, in the Authorization header. How API keys work
Scope the API key needs: records:write
Security schemes in the OpenAPI document: session_cookie (cookie __Host-ivy_session)bearer (bearer)api_key (bearer)
Parameters
-
organisation_idpathstringrequired -
workspace_idpathstringrequired -
namepathstringrequired -
record_idpathstringrequired -
If-Matchheaderstring|nullThe
"r{revision}"ETag; a mismatch is 412
Request body
application/json MoveRecord required
-
afterstring|nullThe card it goes after: the one above it.
-
beforestring|nullThe card it goes before: the one below it. Without
beforeandafter, the top of the column. -
columnstringrequiredThe column's name.
-
viewstringrequiredThe board file's id.
Responses
-
The record in its new column and place;
ETag: "r{revision}" -
unauthenticated -
forbidden: the collection'saccess.updatedecides who moves;workspace_content_restricted,invalid_origin,insufficient_scope -
No such space,
collection_missing,record_missing,view_missing, or collections are off -
view_invalid: the board file has problems;collection_detached,workspace_archived -
precondition_failed:If-Matchis not the current revision (details.current) -
validation_failed:column_missing,unknown_card(before,after),view_of_another_collection,read_only -
rate_limited -
internal -
unavailable: the database is briefly unavailable; retry afterRetry-Afterseconds
Error codes
Errors come back as an ErrorBody whose code is one of these.
- 401
unauthenticated - 403
forbiddenworkspace_content_restrictedinvalid_origininsufficient_scope - 404
collection_missingrecord_missingview_missing - 409
view_invalidcollection_detachedworkspace_archived - 412
precondition_failed - 422
validation_failedunknown_cardafterview_of_another_collectionread_only - 429
rate_limited - 500
internal - 503
unavailable
Examples
curl -X POST "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/workspaces/$WORKSPACE_ID/collections/$NAME/records/$RECORD_ID/move" \
-H "Authorization: Bearer $IVY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"column":"string","view":"string"}' import { client, moveRecordLegacy } from "@spacivapp/ivy-sdk";
client.setConfig({
baseUrl: process.env.IVY_API_URL,
headers: { Authorization: `Bearer ${process.env.IVY_API_KEY}` },
});
const { data, error, response } = await moveRecordLegacy({
path: { organisation_id: organisationId, workspace_id: workspaceId, name, record_id: recordId },
body: {
column: "string",
view: "string"
},
}); {
"after": "string",
"before": "string",
"column": "string",
"view": "string"
} {
"collection": "string",
"collection_id": "collection_123",
"created_at": "2026-01-15T09:30:00Z",
"created_by": {
"id": "id_123",
"type": "user"
},
"fields": {},
"id": "id_123",
"origin": {
"ask_id": "ask_123",
"index": 0,
"kind": "ask",
"run_id": "run_123"
},
"problems": [
{
"code": "not_found",
"field": "string"
}
],
"ranks": {},
"revision": 0,
"schema": "string",
"source": {
"provider": "ivy"
},
"sync": {
"conflict": {
"at": "2026-01-15T09:30:00Z",
"by": {},
"fields": []
},
"error": {
"at": "2026-01-15T09:30:00Z",
"code": "not_found"
},
"pending": {
"at": "2026-01-15T09:30:00Z",
"base_remote_updated_at": "2026-01-15T09:30:00Z",
"before": {},
"by": {},
"fields": {},
"write_id": "write_123"
},
"remote_updated_at": "2026-01-15T09:30:00Z"
},
"updated_at": "2026-01-15T09:30:00Z",
"updated_by": {
"id": "id_123",
"type": "user"
}
}