Update resource