voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
28 lines (16 loc) • 985 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/storage](./storage.md) > [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<[FullMetadata](./storage.fullmetadata.md)<!-- -->>
A promise that resolves with the new metadata for this object.