Skip to main content

Function: getFileUrl()

getFileUrl(client, props): URL

Gets the URL for a storage file by OID.

Parameters​

client​

ApiClient

The API client instance

props​

The request properties

params​

{ oid: string; } = fileParamsSchema

Path parameters (oid)

params.oid​

string = ...

query?​

{ name?: string; } = ...

Query parameters (name)

query.name?​

string = ...

Returns​

URL

URL object for the storage file

Example​

const fileUrl = getFileUrl(client, {
params: { oid: 'abc123...' },
query: { name: 'my-asset' }
});