code: public function addEvent($process_id, $event_create_item)
      {
          list($response) = $this->addEventWithHttpInfo($process_id, $event_create_item);
          return $response;
      }
docs: Operation addEvent
  
  
  
  @param string $process_id ID of the process related to the event (required)
  @param \ProcessMaker\PMIO\Model\EventCreateItem $event_create_item JSON API response with the event object to add (required)
  @return \ProcessMaker\PMIO\Model\EventItem
  @throws \ProcessMaker\PMIO\ApiException on non-2xx response