Add `patch` attribute to the resource object.