Create a universal list lists.add
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
listsWho can execute the method: administrator
The lists.add method creates a universal list.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
IBLOCK_TYPE_ID* |
Identifier of the information block type. Possible values:
|
|
IBLOCK_CODE* |
Symbolic code of the information block |
|
SOCNET_GROUP_ID |
Group identifier. Use this parameter if you want to add the list to a group. The identifier can be obtained using the methods socialnetwork.api.workgroup.list, sonet_group.get, and sonet_group.user.groups |
|
FIELDS* |
Array of list fields. |
|
MESSAGES |
Array of labels for list items and sections. Supported values:
|
|
RIGHTS |
Access permission settings for the list. An array in key-value format, where the key is the letter code of the user or department with the identifier, and the value is the letter code of the permission.
User categories:
You can obtain the user identifier using the method user.get, and the department identifier using the method department.get. Types of permissions:
If the parameter is not provided, the authorized user who called the method is assigned full access. |
Parameter FIELDS
Required parameters are marked with *
|
Name |
Description |
|
NAME* |
Name of the list |
|
DESCRIPTION |
Description of the list |
|
SORT |
Sorting |
|
PICTURE |
Picture. An object in the format |
|
BIZPROC |
Enabling business process support. Possible values:
|
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"IBLOCK_TYPE_ID":"lists","IBLOCK_CODE":"my_custom_list","FIELDS":{"NAME":"My new list","DESCRIPTION":"List for tracking tasks in the project","SORT":500,"BIZPROC":"Y"},"MESSAGES":{"ELEMENTS_NAME":"Tasks","ELEMENT_NAME":"Task","ELEMENT_ADD":"Add task","ELEMENT_EDIT":"Edit task","ELEMENT_DELETE":"Delete task","SECTIONS_NAME":"Sections","SECTION_NAME":"Section","SECTION_ADD":"Add section","SECTION_EDIT":"Edit section","SECTION_DELETE":"Delete section"},"RIGHTS":{"U1271":"X"}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/lists.add
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"IBLOCK_TYPE_ID":"lists","IBLOCK_CODE":"my_custom_list","FIELDS":{"NAME":"My new list","DESCRIPTION":"List for tracking tasks in the project","SORT":500,"BIZPROC":"Y"},"MESSAGES":{"ELEMENTS_NAME":"Tasks","ELEMENT_NAME":"Task","ELEMENT_ADD":"Add task","ELEMENT_EDIT":"Edit task","ELEMENT_DELETE":"Delete task","SECTIONS_NAME":"Sections","SECTION_NAME":"Section","SECTION_ADD":"Add section","SECTION_EDIT":"Edit section","SECTION_DELETE":"Delete section"},"RIGHTS":{"U1271":"X"},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/lists.add
try {
const response = await $b24.callMethod(
'lists.add',
{
IBLOCK_TYPE_ID: 'lists',
IBLOCK_CODE: 'my_custom_list',
FIELDS: {
NAME: 'My new list',
DESCRIPTION: 'List for tracking tasks in the project',
SORT: 500,
BIZPROC: 'Y'
},
MESSAGES: {
ELEMENTS_NAME: 'Tasks',
ELEMENT_NAME: 'Task',
ELEMENT_ADD: 'Add task',
ELEMENT_EDIT: 'Edit task',
ELEMENT_DELETE: 'Delete task',
SECTIONS_NAME: 'Sections',
SECTION_NAME: 'Section',
SECTION_ADD: 'Add section',
SECTION_EDIT: 'Edit section',
SECTION_DELETE: 'Delete section'
},
RIGHTS: {
'U1271': 'X'
}
}
);
const result = response.getData().result;
console.log('Created list with ID:', result);
processResult(result);
} catch (error) {
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'lists.add',
[
'IBLOCK_TYPE_ID' => 'lists',
'IBLOCK_CODE' => 'my_custom_list',
'FIELDS' => [
'NAME' => 'My new list',
'DESCRIPTION' => 'List for tracking tasks in the project',
'SORT' => 500,
'BIZPROC' => 'Y'
],
'MESSAGES' => [
'ELEMENTS_NAME' => 'Tasks',
'ELEMENT_NAME' => 'Task',
'ELEMENT_ADD' => 'Add task',
'ELEMENT_EDIT' => 'Edit task',
'ELEMENT_DELETE' => 'Delete task',
'SECTIONS_NAME' => 'Sections',
'SECTION_NAME' => 'Section',
'SECTION_ADD' => 'Add section',
'SECTION_EDIT' => 'Edit section',
'SECTION_DELETE' => 'Delete section'
],
'RIGHTS' => [
'U1271' => 'X'
]
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error adding list: ' . $e->getMessage();
}
BX24.callMethod(
'lists.add',
{
IBLOCK_TYPE_ID: 'lists',
IBLOCK_CODE: 'my_custom_list',
FIELDS: {
NAME: 'My new list',
DESCRIPTION: 'List for tracking tasks in the project',
SORT: 500,
BIZPROC: 'Y'
},
MESSAGES: {
ELEMENTS_NAME: 'Tasks',
ELEMENT_NAME: 'Task',
ELEMENT_ADD: 'Add task',
ELEMENT_EDIT: 'Edit task',
ELEMENT_DELETE: 'Delete task',
SECTIONS_NAME: 'Sections',
SECTION_NAME: 'Section',
SECTION_ADD: 'Add section',
SECTION_EDIT: 'Edit section',
SECTION_DELETE: 'Delete section'
},
RIGHTS: {
'U1271': 'X', // user with ID=1271 — full access
}
},
function(result) {
if (result.error()) {
console.error(result.error());
} else {
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'lists.add',
[
'IBLOCK_TYPE_ID' => 'lists',
'IBLOCK_CODE' => 'my_custom_list',
'FIELDS' => [
'NAME' => 'My new list',
'DESCRIPTION' => 'List for tracking tasks in the project',
'SORT' => 500,
'BIZPROC' => 'Y'
],
'MESSAGES' => [
'ELEMENTS_NAME' => 'Tasks',
'ELEMENT_NAME' => 'Task',
'ELEMENT_ADD' => 'Add task',
'ELEMENT_EDIT' => 'Edit task',
'ELEMENT_DELETE' => 'Delete task',
'SECTIONS_NAME' => 'Sections',
'SECTION_NAME' => 'Section',
'SECTION_ADD' => 'Add section',
'SECTION_EDIT' => 'Edit section',
'SECTION_DELETE' => 'Delete section'
],
'RIGHTS' => [
'U1271' => 'X'
]
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP status: 200
{
"result": 109,
"time": {
"start": 1764675143,
"finish": 1764675143.174578,
"duration": 0.17457795143127441,
"processing": 0,
"date_start": "2025-12-02T14:32:23+01:00",
"date_finish": "2025-12-02T14:32:23+01:00",
"operating_reset_at": 1764675743,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Identifier of the created information block |
|
time |
Information about the request execution time |
Error Handling
HTTP status: 400
{
"error":"ERROR_IBLOCK_ALREADY_EXISTS",
"error_description":"Iblock already exists"
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
|
Code |
Description |
Value |
|
|
Required parameter |
Required parameter is missing |
|
|
Iblock already exists |
A list with this |
|
|
— |
Error adding the list |
|
|
Access denied |
The method was called by a non-administrator |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Update Universal List lists.update
- Get Data from Universal List or Array of Lists lists.get
- Delete universal list lists.delete
- Get the information block type ID lists.get.iblock.type.id