For AI agents: markdown of this page — /docs-content-en/entities/product-sections/fields.md documentation index — /llms.txt

Section fields

GET /v1/product-sections/fields

Returns the reference of product section fields with types and the "read-only" flag, plus the list of operations available in a batch request.

Examples

curl — personal key

Terminal
curl "https://vibecode.bitrix24.com/v1/product-sections/fields" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl "https://vibecode.bitrix24.com/v1/product-sections/fields" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/product-sections/fields', {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})

const { success, data } = await res.json()
console.log('Total fields:', Object.keys(data.fields).length)

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/product-sections/fields', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { success, data } = await res.json()

Response fields

data.fields is an object whose key matches the field name and whose value contains type (the field type), readonly (true — the field cannot be passed on create or update), label (a human-readable field name in English) and — on a field whose value Bitrix24 never returns — notReturned: true together with a description. Request headers do not switch the language. data.batch is the list of operations accepted by a batch request.

Field Bitrix24 Type RO Description
id ID number yes Section identifier
name NAME string Section name
catalogId CATALOG_ID number Catalog identifier. List: GET /v1/catalogs
sectionId SECTION_ID number Parent section identifier for nesting. null for a root section
xmlId XML_ID string External identifier for synchronization
sort SORT number yes Sort order, lower comes first. The value is not saved on write and is not returned on read (notReturned: true) — it only works for ordering
code CODE string Section symbolic code
Field Type Description
success boolean Always true on success
data.fields.<name>.type string Field type: number, string
data.fields.<name>.readonly boolean true — the field is filled in by the system and not accepted on create or update
data.fields.<name>.label string Human-readable field name in English
data.fields.<name>.description string Longer field description, when there is one
data.fields.<name>.notReturned boolean true — Bitrix24 never returns this field's value in any response. The key is present only on such fields
data.batch string[] Section operations available in a batch request: create, update, delete

The sort field is not accepted on write and not returned on read. Verified on a live Bitrix24 account: a value passed on create or update is not saved (and Bitrix24 still returns a success for the update), and no response — list, get, search, or the create response — carries it. An explicit select=sort is refused with 400 SELECT_FIELD_NOT_RETURNED. So sending sort in POST or PATCH is now refused with 400 READONLY_FIELD instead of a silent success, and the field reference marks it notReturned: true. Ordering by it does work?sort=sort&order=asc and order=desc give a different order. Filtering by it is not supported. To change the order of sections, edit them in the Bitrix24 interface. The other fields — id, name, catalogId, sectionId, xmlId, code — support exact-match filtering (and $in); operators return 400 UNSUPPORTED_FILTER. The sectionId, xmlId, and code fields come back with a null value if not set. If code is not provided on create, it is generated from name.

Available includes

The GET /v1/product-sections/fields endpoint returns the list of available includes: catalog, parentSection.

Usage example: Get a product section.

More on includes: Related data.

Response example

JSON
{
  "success": true,
  "data": {
    "fields": {
      "id": { "type": "number", "readonly": true },
      "name": { "type": "string", "readonly": false },
      "catalogId": { "type": "number", "readonly": false },
      "sectionId": { "type": "number", "readonly": false },
      "xmlId": { "type": "string", "readonly": false },
      "sort": {
        "type": "number",
        "readonly": true,
        "notReturned": true,
        "label": "Sort order",
        "description": "Sort order of the section among its siblings. Bitrix24 neither saves a value passed on create or update nor returns one on read, so the field is refused on write with 400 READONLY_FIELD and no value ever arrives — declared here so a caller can look it up and read why. Ordering by it DOES work: pass ?sort=sort&order=asc|desc and Bitrix24 sorts by the stored column. To change the order, edit the section in the Bitrix24 interface."
      },
      "code": { "type": "string", "readonly": false }
    },
    "batch": ["create", "update", "delete"]
  }
}

Error response example

403 — no scope:

JSON
{
  "success": false,
  "error": {
    "code": "SCOPE_DENIED",
    "message": "This endpoint requires 'crm' scope"
  }
}

Errors

HTTP Code Description
403 SCOPE_DENIED The API key does not have the crm scope
401 MISSING_API_KEY The X-Api-Key header was not provided
429 RATE_LIMITED Rate limit exceeded: 300 requests per minute per portal, all API keys of the portal share one limit. The exact value arrives in the x-ratelimit-limit header (the cap is divided across replicas). Retry after the delay in the Retry-After header

Full list of common API errors — Errors.

See also