## Publish folder

`POST /v1/sites/:id/folders/:folderId/publication`

Publishes the folder and its parent chain, not the site. A deleted folder in the chain causes a Bitrix24 refusal.

## 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 |

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. Empty body; mark is not accepted.

## curl

```bash
curl -X POST "https://vibecode.bitrix24.com/v1/sites/42/folders/7/publication" -H "X-Api-Key: YOUR_API_KEY"
```

## JavaScript

```javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/folders/7/publication", {
  method: "POST",
  headers: { "X-Api-Key": "YOUR_API_KEY" },
});
const result = await response.json();
```

## Response

```json
{
  "success": true,
  "data": {
    "id": 7,
    "parentId": null,
    "siteId": 42,
    "indexPageId": null,
    "active": true,
    "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.publicationFolder`.

[Site folders](/docs/entities/sites/folders/list)
