update resource (add create method)