code: public TaskUpdateResponse updateTask(String tid, TaskUpdateRequest taskUpdateRequest) throws ApiException {
          ApiResponse<TaskUpdateResponse> resp = updateTaskWithHttpInfo(tid, taskUpdateRequest);
          return resp.getData();
      }
docs: Updates a task for all devices - For now just allows changing the state to cancelled.
  Updates a task for all devices - For now just allows changing the state to cancelled.
  @param tid Task ID. (required)
  @param taskUpdateRequest Task update request (required)
  @return TaskUpdateResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body