[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-note\u002Fdocuments\u002Fmove":3,"docs-tabs-note\u002Fdocuments\u002Fmove":6},{"content":4,"lastmod":5},"## Move a document subtree\n\n`POST \u002Fv1\u002Fnote\u002Fdocuments\u002F:id\u002Fmove`\n\n> **This method is rolling out in Bitrix24 update `note 26.500.0`.** If the method is not yet available on your Bitrix24 account, the API returns `422 METHOD_NOT_YET_AVAILABLE` with `error.release`. Calls work normally on accounts where the method is available.\n\nMoves the document and all its descendants. An omitted collectionId keeps the current collection. An omitted or null parentId places the document at the root. The parent must belong to the target collection. Bitrix24 refuses cycles and moves that widen access.\n\nRequires the note scope and a key with write access. Archived collections are read-only. Permissions are enforced by Bitrix24.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `id` (path) | integer | yes | Document identifier. Knowledge base document tree: [`GET \u002Fv1\u002Fnote\u002Fcollections\u002F:collectionId\u002Fdocuments`](\u002Fdocs\u002Fnote\u002Fcollections\u002Ftree) |\n| `position` (body) | integer \u002F null | no | Signed safe integer. Omitted\u002Fnull: last position. |\n| `collectionId` (body) | integer \u002F null | no | Positive safe integer. [List collections](\u002Fdocs\u002Fnote\u002Fcollections\u002Flist). Omitted\u002Fnull: current. |\n| `parentId` (body) | integer \u002F null | no | Positive safe integer. [Document tree](\u002Fdocs\u002Fnote\u002Fcollections\u002Ftree). Omitted\u002Fnull: root. |\n\n## Examples\n\n### curl — personal key\n\n```bash\n\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments\u002F85\u002Fmove \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"collectionId\": 35, \"position\": -20}'\n\n```\n\n### curl — OAuth application\n\n```bash\n\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments\u002F85\u002Fmove \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"collectionId\": 35, \"position\": -20}'\n\n```\n\n### JavaScript — personal key\n\n```javascript\n\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments\u002F85\u002Fmove', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY', 'Content-Type': 'application\u002Fjson' },\n  body: JSON.stringify({\"collectionId\": 35, \"position\": -20}),\n})\nconst result = await response.json()\nif (!response.ok) throw new Error(result.error.message)\nconsole.log(result.data)\n\n```\n\n### JavaScript — OAuth application\n\n```javascript\n\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments\u002F85\u002Fmove', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_APP_KEY', 'Content-Type': 'application\u002Fjson', 'Authorization': 'Bearer USER_SESSION_TOKEN' },\n  body: JSON.stringify({\"collectionId\": 35, \"position\": -20}),\n})\nconst result = await response.json()\nif (!response.ok) throw new Error(result.error.message)\nconsole.log(result.data)\n\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | `true` |\n| `data` | object | [GET \u002Fv1\u002Fnote\u002Fdocuments\u002F:id](\u002Fdocs\u002Fnote\u002Fdocuments\u002Fget) |\n\nThe response is read back after the move. If the read fails, the change may already have been saved: read the object again before retrying.\n\n## Response example\n\n```json\n\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 85,\n    \"collectionId\": 35,\n    \"parentId\": null,\n    \"title\": \"Return processing procedure\",\n    \"markdown\": \"Steps for processing a product return\",\n    \"position\": 1000,\n    \"createdBy\": 1373,\n    \"updatedBy\": 1373,\n    \"createdAt\": \"2026-10-02T19:43:23Z\",\n    \"updatedAt\": \"2026-10-02T19:43:24Z\",\n    \"contentUpdatedAt\": \"2026-10-02T19:43:23Z\",\n    \"isArchived\": false,\n    \"isTrashed\": false,\n    \"isOrphan\": false\n  }\n}\n\n```\n\n## Error response example\n\n400 — invalid path id:\n\n```json\n\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"id must be a positive integer\"\n  }\n}\n\n```\n\n## Errors\n\n| HTTP | Code | Condition |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | Invalid id, destination or body. |\n| 401 | `MISSING_API_KEY` | Missing key. |\n| 401 | `TOKEN_MISSING` | No Bitrix24 credentials. |\n| 403 | `SCOPE_DENIED` | `note` |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | READONLY |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 access refusal, including writes to an archived collection. |\n| 404 | `ENTITY_NOT_FOUND` | Object not visible or missing; document archived. |\n| 422 | `BITRIX_ERROR` | Cycle, access widening or another business refusal. |\n| 429 | `OPERATION_TIME_LIMIT` | Bitrix24 operation limit. |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 unavailable. |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 timeout. |\n\n[ All errors ](\u002Fdocs\u002Ferrors)\n\n## See also\n\n- [GET \u002Fv1\u002Fnote\u002Fdocuments\u002F:id](\u002Fdocs\u002Fnote\u002Fdocuments\u002Fget)\n\n- [Note](\u002Fdocs\u002Fnote)\n","2026-11-17",{},1795415482844]