<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/storage](./storage.md) &gt; [updateMetadata](./storage.updatemetadata.md)

## updateMetadata() function

Updates the metadata for this object.

<b>Signature:</b>

```typescript
export declare function updateMetadata(ref: StorageReference, metadata: SettableMetadata): Promise<FullMetadata>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  ref | [StorageReference](./storage.storagereference.md) | StorageReference to update metadata for. |
|  metadata | [SettableMetadata](./storage.settablemetadata.md) | The new metadata for the object. Only values that have been explicitly set will be changed. Explicitly setting a value to null will remove the metadata. |

<b>Returns:</b>

Promise&lt;[FullMetadata](./storage.fullmetadata.md)<!-- -->&gt;

A promise that resolves with the new metadata for this object.

