Replace Rest record with metadata