Skip to content

Upload image

Endpoint: https://api.youcan.shop/media/{source}/upload-image

Param NameParam TypeDescription
sourcestringwhere you want to upload the image to [product,category,variantOptions,reviews,editor,page]

Method: POST

Required Scopes

  • upload-media

Parameters

Param NameParam TypeDescriptionRequired
imagesarray of filesArray 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"
    }
]