[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fstorages\u002Ffolders":3,"docs-tabs-entities\u002Fstorages\u002Ffolders":6},{"content":4,"lastmod":5},"## Create a folder at storage root\n\n`POST \u002Fv1\u002Fstorages\u002F:id\u002Ffolders`\n\nCreates a folder at the storage root. Unlike [POST \u002Fv1\u002Ffolders](\u002Fdocs\u002Fentities\u002Ffolders\u002Fcreate), no `parentId` lookup is needed. Requires the `disk` scope. READONLY keys receive 403.\n\n## Request fields\n\nThe path `id` is a positive integer storage ID. Find it through [GET \u002Fv1\u002Fstorages](\u002Fdocs\u002Fentities\u002Fstorages\u002Flist), for example with `filter[entityType]=user`. The [type dictionary](\u002Fdocs\u002Fentities\u002Fstorages\u002Ftypes) is incomplete.\n\nBody: `name` is a required non-empty string. Unknown fields, including `rights`, are rejected. Rights are inherited from the root. Bitrix24 rejects duplicate names; no automatic renaming occurs.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fstorages\u002F1379\u002Ffolders' \\\n  -H 'X-Api-Key: YOUR_API_KEY' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"name\":\"Reports\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fstorages\u002F1379\u002Ffolders' \\\n  -H 'X-Api-Key: YOUR_APP_KEY' \\\n  -H 'Authorization: Bearer USER_SESSION_TOKEN' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"name\":\"Reports\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fstorages\u002F1379\u002Ffolders', {\n  method: 'POST',\n  headers: {\"X-Api-Key\": \"YOUR_API_KEY\", \"Content-Type\": \"application\u002Fjson\"},\n  body: JSON.stringify({\"name\": \"Reports\"}),\n})\nconst result = await response.json()\nconsole.log(result)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fstorages\u002F1379\u002Ffolders', {\n  method: 'POST',\n  headers: {\"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\", \"Content-Type\": \"application\u002Fjson\"},\n  body: JSON.stringify({\"name\": \"Reports\"}),\n})\nconst result = await response.json()\nconsole.log(result)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | Whether the request succeeded |\n| `data` | object | The created folder |\n| `data.id` | number | Identifier of the created folder |\n| `data.name` | string | Folder name — the `name` value from the request |\n| `data.parentId` | number | Parent folder ID — the storage root folder, the `rootFolderId` field in the [storage list](\u002Fdocs\u002Fentities\u002Fstorages\u002Flist) |\n| `data.storageId` | number | Storage ID, equal to `id` in the path |\n| `data.code` | string | Symbolic code. Not saved on creation, returned as `null` |\n| `data.type` | string | Object type, `\"folder\"` for a folder |\n| `data.realObjectId` | number | Internal object ID |\n| `data.detailUrl` | string | Link to the folder in the Bitrix24 interface. Access is limited by the employee's Bitrix24 permissions |\n| `data.deletedType` | number | Deletion status. A new folder has `0` — not deleted |\n| `data.createdBy` | number | Creator user ID. Lookup: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.updatedBy` | number | ID of the user who made the last change. Lookup: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.deletedBy` | number | ID of the user who deleted the folder. A new folder has `null` |\n| `data.createdAt` | datetime | Creation date and time (ISO 8601 UTC) |\n| `data.updatedAt` | datetime | Date and time of the last change |\n| `data.deletedAt` | datetime | Deletion date and time. A new folder has `null` |\n\nHTTP 201, a folder in the [folders](\u002Fdocs\u002Fentities\u002Ffolders\u002Fget) projection.\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 10897,\n    \"name\": \"Reports\",\n    \"code\": null,\n    \"storageId\": 1379,\n    \"type\": \"folder\",\n    \"realObjectId\": 10897,\n    \"parentId\": 9057,\n    \"deletedType\": 0,\n    \"createdAt\": \"2026-10-23T07:29:19.000Z\",\n    \"updatedAt\": \"2026-10-23T07:29:19.000Z\",\n    \"deletedAt\": null,\n    \"createdBy\": 1295,\n    \"updatedBy\": 1295,\n    \"deletedBy\": null,\n    \"detailUrl\": \"https:\u002F\u002F\u003Cportal>.bitrix24.com\u002Fcompany\u002Fpersonal\u002Fuser\u002F1295\u002Fdisk\u002Fpath\u002FReports\"\n  }\n}\n```\n\n## Error response example\n\n400 — invalid storage ID:\n\n```json\n{\"success\":false,\"error\":{\"code\":\"INVALID_ID\",\"message\":\"id must be a positive integer.\"}}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `INVALID_ID` | Invalid storage ID |\n| 400 | `MISSING_REQUIRED_FIELDS` | Missing name, empty or invalid name, unknown fields |\n| 400 | `INVALID_PARAMS` | Missing name, empty or invalid name, unknown fields |\n| 403 | `SCOPE_DENIED` | Scope, key access mode or Bitrix24 permissions |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | Scope, key access mode or Bitrix24 permissions |\n| 403 | `BITRIX_ACCESS_DENIED` | Scope, key access mode or Bitrix24 permissions |\n| 404 | `ENTITY_NOT_FOUND` | Storage not found |\n| 422 | `BITRIX_ERROR` | Duplicate name, Bitrix24 business refusal or no folder returned |\n| 422 | `OPERATION_FAILED` | Duplicate name, Bitrix24 business refusal or no folder returned |\n\nCommon refusals: [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\nThe write is not retried automatically after a network failure or timeout. Its outcome may be unknown: reread the root contents before retrying.\n\n## See also\n\n- [list](\u002Fdocs\u002Fentities\u002Fstorages\u002Flist)\n- [create](\u002Fdocs\u002Fentities\u002Ffolders\u002Fcreate)\n- [types](\u002Fdocs\u002Fentities\u002Fstorages\u002Ftypes)\n","2026-10-23",{},1795527841988]