code: public TaskEnvelope createTasks(TaskRequest taskPayload) throws ApiException {
          ApiResponse<TaskEnvelope> resp = createTasksWithHttpInfo(taskPayload);
          return resp.getData();
      }
docs: Create a new task for one or more devices
  Create a new task for one or more devices
  @param taskPayload Task object to be created (required)
  @return TaskEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body