For AI agents: markdown of this page — /docs-content-en/entities/sites/folders/update.md documentation index — /llms.txt

Update folder

PATCH /v1/sites/:id/folders/:folderId

Omitted parentId preserves the current parent. Explicit parentId: null moves to root. Empty body is refused.

Parameters

Parameter Type Description
id integer Positive safe integer site ID
scope string Optional KNOWLEDGE / GROUP / MAINPAGE
folderId integer Positive safe integer folder ID belonging to the site
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

Terminal
curl -X PATCH "https://vibecode.bitrix24.com/v1/sites/42/folders/7" -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"title": "Catalog"}'

JavaScript

javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/folders/7", {
  method: "PATCH",
  headers: { "X-Api-Key": "YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"title": "Catalog"}),
});
const result = await response.json();

Response

JSON
{
  "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.updateFolder.

Site folders