Upload gallery product image

POST https://app.ecwid.com/api/v3/{storeId}/products/{productId}/gallery

Required access scopes

Your app must have the following access scopes to make this request: update_catalog

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

productId

number

Internal product ID.

Query params

All query params are optional.

Name
Type
Description

fileName

string

Title for the uploaded image.

externalUrl

string

HTTPS link to the image file that will be uploaded to the store. Alternatively, you can send the image as binary data in the request body.

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Request JSON

Field
Type
Description

externalId

string

Internal image ID for Lightspeed R-Series/X-Series image sync.

Response JSON

A JSON object with the following fields:

Field
Type
Description

id

number

Internal ID of the uploaded image.

Last updated

Was this helpful?