Change parameters of entity.update
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.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* |
Required. String identifier of the storage being updated. |
|
NAME |
New name of the storage. |
|
ACCESS |
Description of the new set of access permissions for the storage. |
|
ENTITY_NEW |
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