Change parameters of entity.update

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.update method updates the parameters of the data storage. The user must have management rights (X) for the storage. The user cannot revoke their own management rights.

Parameters

Parameter

Description

ENTITY*
string

Required. String identifier of the storage being updated.

NAME
string

New name of the storage.

ACCESS
unknown

Description of the new set of access permissions for the storage.
It should be in the form of an associative array, where the keys are the identifiers of access permissions, and the values are R (read), W (write), or X (manage).

ENTITY_NEW
string

New string identifier of the storage.

Required parameters are marked with *

Example

try
        {
        	const response = await $b24.callMethod(
        		'entity.update',
        		{
        			'ENTITY': 'dish',
        			'ACCESS': {
        				U1:'W',
        				AU:'R'
        			}
        		}
        	);
        	
        	const result = response.getData().result;
        }
        catch( error )
        {
        	console.error('Error:', error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'entity.update',
                    [
                        'ENTITY' => 'dish',
                        'ACCESS' => [
                            'U1' => 'W',
                            'AU' => 'R'
                        ]
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            echo 'Success: ' . print_r($result, true);
            // Your required data processing logic
            processData($result);
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error updating entity: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'entity.update',
            {
                'ENTITY': 'dish',
                'ACCESS': {
                    U1:'W',
                    AU:'R'
                }
            }
        );
        

How to Use Examples in Documentation