code: public ApiResponse<TaskEnvelope> createTasksWithHttpInfo(TaskRequest taskPayload) throws ApiException {
          com.squareup.okhttp.Call call = createTasksValidateBeforeCall(taskPayload, null, null);
          Type localVarReturnType = new TypeToken<TaskEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
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 ApiResponse&lt;TaskEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body