Update Additional Property of Storage Items entity.item.property.update

We are still updating this page

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

Scope: entity

Who can execute the method: any user

The method entity.item.property.update updates the additional property of storage items. The user must have management rights (X) for the storage.

Parameters

Parameter

Description

ENTITY*
string

Required. String identifier of the storage.

PROPERTY*
string

Required. String identifier of the property.

PROPERTY_NEW
string

New string identifier of the property.

NAME
string

Name of the property.

TYPE
unknown

Type of the property (S - string, N - number, F - file).

Required parameters are marked with *

Example

try
        {
        	const response = await $b24.callMethod(
        		'entity.item.property.update',
        		{
        			ENTITY: 'menu_new',
        			PROPERTY: 'new_prop',
        			NAME: 'Not a new property anymore'
        		}
        	);
        	
        	const result = response.getData().result;
        }
        catch( error )
        {
        	console.error('Error:', error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'entity.item.property.update',
                    [
                        'ENTITY'   => 'menu_new',
                        'PROPERTY' => 'new_prop',
                        'NAME'     => 'Not a new property anymore'
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            echo 'Success: ' . print_r($result, true);
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error updating entity item property: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'entity.item.property.update',
            {
                ENTITY: 'menu_new',
                PROPERTY: 'new_prop',
                NAME: 'Not a new property anymore'
            }
        );
        
https://my.bitrix24.com/rest/entity.item.property.update.json?ENTITY=menu_new&NAME=Not%20a%20new%20property%20anymore&PROPERTY=new_prop&auth=ad5a6f34f14f644136830eb8a936f07f
        

How to Use Examples in Documentation

Response on Success

200 OK

{"result":true}