Skip to main content

Class: AdminUploadsResource

Hierarchy

  • default

    AdminUploadsResource

Properties

headers

Private headers: Object

Type declaration

NameType
Content-Typestring

Defined in

medusa-js/src/resources/admin/uploads.ts:14

Methods

create

create(file): ResponsePromise<AdminUploadsRes>

Parameters

NameType
fileIAdminPostUploadsFileReq

Returns

ResponsePromise<AdminUploadsRes>

Defined in

medusa-js/src/resources/admin/uploads.ts:18


createProtected

createProtected(file): ResponsePromise<AdminUploadsRes>

Parameters

NameType
fileIAdminPostUploadsFileReq

Returns

ResponsePromise<AdminUploadsRes>

Defined in

medusa-js/src/resources/admin/uploads.ts:27


delete

delete(payload, customHeaders?): ResponsePromise<DeleteResponse>

Parameters

NameType
payloadAdminDeleteUploadsReq
customHeadersRecord<string, any>

Returns

ResponsePromise<DeleteResponse>

Defined in

medusa-js/src/resources/admin/uploads.ts:36


getPresignedDownloadUrl

getPresignedDownloadUrl(payload, customHeaders?): ResponsePromise<AdminUploadsDownloadUrlRes>

Parameters

NameType
payloadAdminPostUploadsDownloadUrlReq
customHeadersRecord<string, any>

Returns

ResponsePromise<AdminUploadsDownloadUrlRes>

Defined in

medusa-js/src/resources/admin/uploads.ts:45

Was this page helpful?