code: public function syncGroupsToTask($process_id, $task_id, $task_sync_groups_item)
      {
          list($response) = $this->syncGroupsToTaskWithHttpInfo($process_id, $task_id, $task_sync_groups_item);
          return $response;
      }
docs: Operation syncGroupsToTask
  
  
  
  @param string $process_id Process ID (required)
  @param string $task_id ID of the task to modify (required)
  @param \ProcessMaker\PMIO\Model\TaskSyncGroupsItem $task_sync_groups_item JSON API response with group IDs to sync (required)
  @return \ProcessMaker\PMIO\Model\ResultSuccess
  @throws \ProcessMaker\PMIO\ApiException on non-2xx response