lists.section.update
Scope: catalog Permissions to execute: for all
lists.section.update( params )
The method updates a list section. Returns true on success and returns Exception otherwise.
Parameter | Description | Available from version |
---|---|---|
IBLOCK_TYPE_ID | Information block type ID (required). Possible values:
| |
IBLOCK_CODE/IBLOCK_ID | Code or information block ID (required). | |
IBLOCK_SECTION_ID | Parent section ID. If not specified, root partition is indicated. | |
FIELDS | Array of fields and values: Available fields are described in the Structure for Iblock Module Tables. Required fields: NAME.) | |
SOCNET_GROUP_ID | group ID (required, for created group list); |
Example
/* lists.section.update */ var params = { 'IBLOCK_TYPE_ID': 'lists', 'IBLOCK_CODE': 'rest_1', 'SECTION_CODE': 'Section_code_1', 'FIELDS': { 'NAME': 'Section_1 (Updated)' } }; BX.rest.callMethod( 'lists.section.update', params, function(result) { if(result.error()) alert("Error: " + result.error()); else console.log(result.data()); } );
© «Bitrix24», 2001-2024