Untuk agen AI: markdown halaman ini — /docs-content-en/entities/sites/folders/create.md indeks dokumentasi — /llms.txt
Artikel dokumentasi saat ini tersedia dalam bahasa Inggris.
Create folder
POST /v1/sites/:id/folders
A new folder is inactive. Returns the folder read back with 201. title is required; code, parentId and indexPageId are optional.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | integer | Positive safe integer site ID |
| scope | string | Optional KNOWLEDGE / GROUP / MAINPAGE |
| title | string | Non-empty title; required on create |
| code | string | URL segment |
| parentId | integer / null | Parent folder; null means root |
| indexPageId | integer / null | Index page of this site; null clears it |
Requires landing key scope. Pass scope for knowledge bases, groups and MAINPAGE. State fields are read-only. Dates are ISO 8601 wall clocks without an offset: Bitrix24 does not return the timezone.
curl
curl -X POST "https://vibecode.bitrix24.com/v1/sites/42/folders" -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"title": "Catalog"}'
JavaScript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/folders", {
method: "POST",
headers: { "X-Api-Key": "YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({"title": "Catalog"}),
});
const result = await response.json();
Response
{
"success": true,
"data": {
"id": 7,
"parentId": null,
"siteId": 42,
"indexPageId": null,
"active": false,
"deleted": false,
"title": "Catalog",
"code": "catalog",
"createdById": 42,
"modifiedById": 42,
"dateCreate": "2026-10-05T14:41:37",
"dateModify": "2026-10-05T14:41:37"
}
}
Errors
400 INVALID_PARAMS / INVALID_SCOPE / MISSING_REQUIRED_FIELDS / READONLY_FIELD; 401 TOKEN_MISSING; 403 SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY; 404 ENTITY_NOT_FOUND; 409 LANDING_MODULE_NOT_ENABLED; 422 BITRIX_ERROR; 429; 502 / 503.
Bitrix24: landing.site.addFolder.