Upload image
Endpoint: https://api.youcan.shop/media/{source}/upload-image
Param Name | Param Type | Description |
---|---|---|
source | string | where you want to upload the image to [product,category,variantOptions,reviews,editor,page] |
Method: POST
Required Scopes
upload-media
Parameters
Param Name | Param Type | Description | Required |
---|---|---|---|
images | array of files | Array of file images to upload, supported types are (jpeg,jpg,png,gif,webp) | yes |
Response
[201] Created
json
[
{
"name": "stores/52dba3c5b4310cf3b79fa091fc8900d0/products/tpbZB7VuXV5cw8tYw5mXyEoJdC1AMINEIuxxpbjL.jpeg",
"link": "https://cdn.youcan.shop/stores/52dba3c5b4310cf3b79fa091fc8900d0/products/HB5h8edelDIj42NhZh6rMeOzMzjos3D6drV97TO3.jpeg"
},
{
"name": "stores/52dba3c5b4310cf3b79fa091fc8900d0/products/tpbZB7VuXV5cw8tYw5mXyEoJdC1AMINEIuxxpbjL.jpeg",
"link": "https://cdn.youcan.shop/stores/52dba3c5b4310cf3b79fa091fc8900d0/products/HB5h8edelDIj42NhZh6rMeOzMzjos3D6drV97TO3.jpeg"
}
]