addCalEntry

The syntax for sets are the same as gets. They will return the id of the new item, if no errors.

Insert a single calendar entry

Params:

  • eventtype (comma separated list of event tags)
  • start (integer timestamp)
  • end (integer timestamp)
  • name (string)
  • details (string)

Standard possible event eventtypes (the standard types are not deleteable):

  • Birthday (1)
  • Vacation (2)
  • Vacation request (3)
  • Sickleave (4)
  • Event (5)
  • Holiday (6)
  • And all the individual calendar entry types you create in your joli account by yourselve

Return JSON:

{
    'calentry_id':'new_entry_id'
}

Example:

...
$params = array(
    'eventtype' => '2',
    'name' => 'New Event',
    'details' => 'New Event Details',
    'start'  => '1490482800',
    'end'  => '1490569200',
);
...
soapCall( 'addCalEntry', $params, $header );

API Setters