code: public CollectionUpdateResponse updateCollection(CollectionUpdateRequest request) throws IOException {
          return new CollectionUpdateResponse(client.doPost(request.toUrl(), request.getBody()));
      }
docs: Update the specified collection.
  Note that this method is only usable with WSAPI versions 2.0 and above.
  
  @param request the {@link CollectionUpdateRequest} specifying the collection to be updated.
  @return the resulting {@link CollectionUpdateResponse}
  @throws IOException if an error occurs during the update.