For AI agents: markdown of this page — /docs-content-en/entities/requisite-presets/preset-fields/get.md documentation index — /llms.txt

Get a preset field

GET /v1/requisite-presets/:presetId/fields/:id

Returns a single field row by its identifier within a requisite preset.

Parameters

Parameter Type Required Description
ParameterpresetId (path) Typenumber Requiredyes DescriptionRequisite preset ID. Get the list of presets: GET /v1/requisite-presets
Parameterid (path) Typenumber Requiredyes DescriptionID of the field row within the preset. Get the list: GET /v1/requisite-presets/:presetId/fields

Examples

curl — personal key

Terminal
curl "https://vibecode.bitrix24.com/v1/requisite-presets/1/fields/1" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl "https://vibecode.bitrix24.com/v1/requisite-presets/1/fields/1" \
  -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/requisite-presets/1/fields/1', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data } = await res.json()
console.log('Field:', data.fieldName, '— sort order:', data.sort)

JavaScript — OAuth application

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

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

Response fields

Field Type Description
Fieldsuccess Typeboolean DescriptionAlways true on success
Fielddata Typeobject DescriptionThe preset field row object
Fielddata.id Typenumber DescriptionID of the field row within the preset
Fielddata.fieldName Typestring DescriptionSystem name of the requisite field: RQ_INN, RQ_COMPANY_NAME, etc.
Fielddata.fieldTitle Typestring DescriptionField title. If not overridden, a single read returns the default name, e.g. "INN" for RQ_INN
Fielddata.inShortList Typeboolean DescriptionWhether the field is shown in the short requisite list
Fielddata.sort Typenumber DescriptionSort order of the field within the preset

Response example

JSON
{
  "success": true,
  "data": {
    "id": 1,
    "fieldName": "RQ_INN",
    "fieldTitle": "INN",
    "inShortList": true,
    "sort": 500
  }
}

Error response example

404 — field not found:

JSON
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "The PresetField with ID '99999' is not found"
  }
}

Errors

HTTP Code Description
HTTP404 CodeENTITY_NOT_FOUND DescriptionNo field row with this id found in the preset
HTTP400 CodeINVALID_PRESET_ID DescriptionThe provided presetId is not a positive integer
HTTP400 CodeINVALID_FIELD_ID DescriptionThe provided id is not a positive integer
HTTP403 CodeSCOPE_DENIED DescriptionAPI key lacks the crm scope
HTTP401 CodeTOKEN_MISSING DescriptionAPI key has no configured tokens

Full list of common API errors — Errors.

Known specifics

The inShortList flag is a boolean. The field is returned as true or false, not Y/N.

fieldTitle contains the default name. Even when the field title is not overridden, reading a single row returns its name — "INN" for RQ_INN, "Contact person" for RQ_CONTACT. In the field list, the same field comes back with fieldTitle: "".

The field id is not the same as fieldName. The id parameter in the path is the numeric identifier of the field row within the preset — the id field from the GET /v1/requisite-presets/:presetId/fields response, not the system field name fieldName. To look up a field by name, call GET /v1/requisite-presets/:presetId/fields?filter[fieldName]=RQ_INN.

See also