Documentation

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:
  • lists - type of information block list
  • bitrix_processes - type of processes information block
  • lists_socnet - type of information block group list
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_IDgroup 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