added support for collection api to be able to update with rest api calls.