Skip to main content

api.updateMetadata()

View Source: updateMetadata

function updateMetadata(fileId, metadata): Promise<{
success: boolean;
}>;

Description

Update file metadata.

Sample Code

TypeScript Example:

// Example usage of api.updateMetadata()
const result = await api.updateMetadata();
console.log(result);

Parameters

fileId

string

The unique identifier of the file

metadata

New metadata values

name?

string

tags?

string[]

Returns

Promise<{ success: boolean; }>

Promise resolving to updated metadata