Class: AdminUploadsResource
Hierarchy
default
↳
AdminUploadsResource
Properties
headers
• Private
headers: Object
Type declaration
Name | Type |
---|---|
Content-Type | string |
Defined in
medusa-js/src/resources/admin/uploads.ts:14
Methods
create
▸ create(file
): ResponsePromise
<AdminUploadsRes
>
Parameters
Name | Type |
---|---|
file | IAdminPostUploadsFileReq |
Returns
ResponsePromise
<AdminUploadsRes
>
Defined in
medusa-js/src/resources/admin/uploads.ts:18
createProtected
▸ createProtected(file
): ResponsePromise
<AdminUploadsRes
>
Parameters
Name | Type |
---|---|
file | IAdminPostUploadsFileReq |
Returns
ResponsePromise
<AdminUploadsRes
>
Defined in
medusa-js/src/resources/admin/uploads.ts:27
delete
▸ delete(payload
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
Name | Type |
---|---|
payload | AdminDeleteUploadsReq |
customHeaders | Record <string , any > |
Returns
ResponsePromise
<DeleteResponse
>
Defined in
medusa-js/src/resources/admin/uploads.ts:36
getPresignedDownloadUrl
▸ getPresignedDownloadUrl(payload
, customHeaders?
): ResponsePromise
<AdminUploadsDownloadUrlRes
>
Parameters
Name | Type |
---|---|
payload | AdminPostUploadsDownloadUrlReq |
customHeaders | Record <string , any > |
Returns
ResponsePromise
<AdminUploadsDownloadUrlRes
>
Defined in
Was this page helpful?