Return resource when created or updated.