Update the entity.section.update method

We are still updating this page

Some data may be missing here — we will complete it shortly.

Scope: entity

Who 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*
string

Required. String identifier of the storage.

ID*
integer

Required. Identifier of the section being updated.

NAME
string

Name of the section.

DESCRIPTION
unknown

Description of the section.

ACTIVE
unknown

Flag indicating the section's activity (Y|N).

SORT
unknown

Sorting parameter of the section.

PICTURE
unknown

Picture of the section.

DETAIL_PICTURE
unknown

Detailed picture of the section.

SECTION
unknown

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}