#Product sections
Entity: productSection | Scope: crm | Base path: /v1/product-sections
Legacy entity (UPPER_CASE field names) — field names are automatically converted to camelCase.
#Operations
| Method | Path | Description | Bitrix24 Method |
|---|---|---|---|
GET |
/v1/product-sections |
List all (with filter, sort, pagination) | crm.productsection.list |
GET |
/v1/product-sections/:id |
Get by ID | crm.productsection.get |
POST |
/v1/product-sections |
Create new | crm.productsection.add |
PATCH |
/v1/product-sections/:id |
Update by ID | crm.productsection.update |
DELETE |
/v1/product-sections/:id |
Delete by ID | crm.productsection.delete |
GET |
/v1/product-sections/fields |
Get available fields | crm.productsection.fields |
#Fields
| API Name | Bitrix24 Name | Type | Readonly | Description |
|---|---|---|---|---|
id |
ID |
number | yes | Идентификатор записи |
name |
NAME |
string | ||
catalogId |
CATALOG_ID |
number | ||
sectionId |
SECTION_ID |
number | ||
xmlId |
XML_ID |
string | ||
sort |
SORT |
number |
#Examples
#List
curl -X GET '/v1/product-sections?limit=10' \
-H 'X-Api-Key: YOUR_KEY'
#Get by ID
curl -X GET '/v1/product-sections/123' \
-H 'X-Api-Key: YOUR_KEY'
#Create
curl -X POST '/v1/product-sections' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"name":"value","catalogId":1,"sectionId":1}'
#Update
curl -X PATCH '/v1/product-sections/123' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"title":"updated"}'
#Delete
curl -X DELETE '/v1/product-sections/123' \
-H 'X-Api-Key: YOUR_KEY'
#Batch
curl -X POST '/v1/batch' \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"calls":[{"entity":"product-sections","action":"list","params":{"limit":5}}]}'