update resource with option to merge first