entity.item.add
Adds storage element. User must have at least storage Write (W) permission.
Parameters
Parameter | Description |
---|---|
ENTITY | Required. Storage string ID. |
NAME | Required. 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 preview 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 | Associative list of element property values. Storage properties are created using entity.item.property.add. |
Example
Call
BX24.callMethod('entity.item.add', { ENTITY: 'menu_new', DATE_ACTIVE_FROM: new Date(), DETAIL_PICTURE: ' ', NAME: 'Hello, world!, PROPERTY_VALUES: { test: 11, test1: 22, test_file: ' ' }, SECTION: 219 });
Request
https://my.bitrix24.com/rest/entity.item.add.json?DATE_ACTIVE_FROM=2013-06-26T11%3A54%3A30.421Z&DETAIL_PICTURE=&ENTITY=menu_new&NAME=Hello%2C%20world!&PROPERTY_VALUES%5Btest1%5D=22&PROPERTY_VALUES%5Btest%5D=11&PROPERTY_VALUES%5Btest_file%5D=&SECTION=219&auth=9affe382af74d9c5caa588e28096e872
Response
{"result":842}
© «Bitrix24», 2001-2024