Documentation

calendar.section.add

Adds new calendar. Hereinafter section will be referred to as Calendar.

Parameters

Parameter Description
type* Calendar type:
  • user;
  • group.
ownerId* Calendar owner ID.
name* Calendar name.
description Calendar description.
color Calendar color.
text_color Calendar text color.
export List of parameters:
  • ALLOW - allow calendar export;
  • SET - set export period.
access Array of calendar access data.
* - required parameters

Returned values

Returns created calendar IDs.

Example

BX24.callMethod("calendar.section.add",
   {
     type: 'user',
     ownerId: '2',
     name: 'New Section',
     description: 'Description for section',
     color: '#9cbeee',
     text_color: '#283000',
     export: [{ALLOW: false}]
     access: {
      'D114': 17,
      'G2': 13,
      'U2':15
     }
   });


© «Bitrix24», 2001-2024
Up