Update the entity.section.update method
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
entityWho can execute the method: any user
The entity.section.update method updates a storage section. The user must have at least write access permission (W) in the storage.
Parameters
|
Parameter |
Description |
|
ENTITY* |
Required. String identifier of the storage. |
|
ID* |
Required. Identifier of the section being updated. |
|
NAME |
Name of the section. |
|
DESCRIPTION |
Description of the section. |
|
ACTIVE |
Flag indicating the section's activity (Y|N). |
|
SORT |
Sorting parameter of the section. |
|
PICTURE |
Picture of the section. |
|
DETAIL_PICTURE |
Detailed picture of the section. |
|
SECTION |
Identifier of the parent section. |
Required parameters are marked with *
Examples
try
{
const response = await $b24.callMethod(
'entity.section.update',
{
ENTITY: 'menu_new',
ID: 220,
NAME: 'Not a very test section'
}
);
const result = response.getData().result;
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'entity.section.update',
[
'ENTITY' => 'menu_new',
'ID' => 220,
'NAME' => 'Not a very test section',
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error updating entity section: ' . $e->getMessage();
}
BX24.callMethod(
'entity.section.update',
{
ENTITY: 'menu_new',
ID: 220,
NAME: 'Not a very test section'
}
);
https://my.bitrix24.com/rest/entity.section.update.json?auth=9affe382af74d9c5caa588e28096e872&ENTITY=menu_new&ID=220&NAME=Not%20a%20very%20test%20section
How to Use Examples in Documentation
Success response
200 OK
{"result":true}