@spacehq/sdk > GundbMetadataStore > upsertSharedWithMeFile
GundbMetadataStore.upsertSharedWithMeFile() method
Inserts a new shared with me file. If a file with the same dbId, path and bucket slug exists, the existing record would be updated and returned.
Signature:
upsertSharedWithMeFile(fileData: SharedFileMetadata): Promise<SharedFileMetadata>;
Parameters
Parameter | Type | Description |
---|---|---|
fileData | SharedFileMetadata |
Returns:
Promise<SharedFileMetadata>