Update resource.