Documentation

lists.section.update

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 [link=6662314]Structure for Iblock Module Tables[/link]. Required fields: NAME, CODE. )

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
Up