Documentation

entity.item.update

Updates storage element. User must have at least storage Write (W) permission.

Parameters

Parameter Description
ENTITY Required. Storage string ID.
ID Required. Element ID.
NAME Element name.
ACTIVE Element activity flag (Y|N).
DATE_ACTIVE_FROM Element activity start date.
DATE_ACTIVE_TO Element activity end date.
SORT Element sorting weight.
PREVIEW_PICTURE Element preveiw image.
PREVIEW_TEXT Element preview.
DETAIL_PICTURE Detailed element image.
DETAIL_TEXT Detailed element text.
CODE Element symbol code.
SECTION Storage section ID.
PROPERTY_VALUES Required. Associative list with element properties. Storage properties are created using entity.item.property.add.

Example

Call

BX24.callMethod('entity.item.update', {
 ENTITY: 'menu_new',
 ID: 842,
 DATE_ACTIVE_FROM: new Date(),
 DETAIL_PICTURE: ' ',
 NAME: 'Goodbye Cruel World',
 PROPERTY_VALUES: {
  test: 11,
  test1: 22,
  test_file: ' '
 },
 SECTION: 219
});

Request

https://my.bitrix24.com/rest/entity.item.update.json?DATE_ACTIVE_FROM=2013-06-26T12%3A03%3A31.653Z&DETAIL_PICTURE=&ENTITY=menu_new&ID=842&NAME=Goodbye%20Cruel%20World&PROPERTY_VALUES%5Btest1%5D=22&PROPERTY_VALUES%5Btest%5D=11&PROPERTY_VALUES%5Btest_file%5D=&SECTION=219&auth=9affe382af74d9c5caa588e28096e872

Response

{"result":true}



© «Bitrix24», 2001-2024
Up