code: public function addTask($process_id, $task_create_item)
      {
          list($response) = $this->addTaskWithHttpInfo($process_id, $task_create_item);
          return $response;
      }
docs: Operation addTask
  
  
  
  @param string $process_id Process ID related to the task (required)
  @param \ProcessMaker\PMIO\Model\TaskCreateItem $task_create_item JSON API with the task object to add (required)
  @return \ProcessMaker\PMIO\Model\TaskItem
  @throws \ProcessMaker\PMIO\ApiException on non-2xx response