Data Types and Parameter Formats in REST API
We are still updating this page
Some data may be missing — we will complete it soon.
Basic Data Types
|
Type |
Descriptions and Values |
|
|
Whole number. For example, 10116 |
|
|
Boolean value. Most often takes values |
|
|
Fixed-length string type, usually |
|
|
Floating-point number. For example, 100.15 |
|
|
Date in the format 'YYYY-MM-DD'. For example, '2023-12-28', which means December 28, 2023 |
|
|
Date and time in the format 'YYYY-MM-DDThh:mm:ss±hh:mm'. For example, '2023-12-28T14:05:48', which means 14 hours, 5 minutes, and 48 seconds on December 28, 2023. |
|
|
Single-line string value. For example, 'Supply Agreement' |
|
|
Multi-line string value, applicable in some special fields of objects. |
|
|
Attached file. Can take a numeric value with a unique file identifier in the system or a value in the form of an array describing a series of file parameters. Read about working with files in the corresponding section. |
|
|
A set of simple type elements. For example, an array of integers [1, 5, 67] or strings ['deal', 'lead', 'quote'] |
|
|
Structure of arbitrary nesting level containing elements of different data types. For example,
|
|
|
Various data types can serve as parameter values. |
Features of Dates and Times
When working with fields of types date and datetime, note that each user in Bitrix24 can have their own time zone specified in the settings. The Bitrix24 user interface displays dates and times, adapting them to the specific user; however, at the API level, all dates and times are stored according to the server parameters. Read more details in the corresponding material.
Links to Objects and Directories
Fields of Bitrix24 objects can contain values that refer to other objects or to values from directories. Technically, such values are most often stored and indicated as integer identifiers of specific objects or directory elements. However, for convenience and to emphasize such relationships, we will use special types in the documentation, such as crm_company or crm_status. Below are examples of such types with links to methods for obtaining possible values.
|
Type |
Descriptions and Values |
|
|
Integer identifier of a Bitrix24 user. For example, 1. User identifiers can be obtained using the user.get method. |
Data directories of various Bitrix24 tools:
Time Object
The time object is present in the responses to all REST requests and contains information about the execution time of the request.
|
Name |
Description |
|
start |
Timestamp of the moment the request was initialized. |
|
finish |
Timestamp of the moment the request execution was completed. |
|
duration |
How long in milliseconds the request took, i.e., the difference between |
|
date_start |
String representation of the date and time of the moment the request was initialized. |
|
date_finish |
String representation of the date and time of the moment the request execution was completed. |
|
operating_reset_at |
Timestamp of the moment when the limit on REST API resources will be reset. Read more details in the article operation limit. |
|
operating |
In how many milliseconds the limit on REST API resources will be reset. Read more details in the article operation limit. |