When uploading an image for a category, the image itself needs to be sent in the body of your request in a form of binary data. The file that you wish to upload needs to be prepared for that format and then sent to Ecwid API endpoint.
Alternatively, you can specify an
externalUrl to your file as a request parameter and Ecwid will download it from there.
|oAuth token with mandatory
Bearer before it. Example:
Bearer e***s0, where
e***s0 should be replaced with your oAuth token.
A JSON object of type 'UploadStatus' with the following fields:
|Internal image ID
In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing error description
|Request parameters are malformed
|Category is not found
|The image file is too large (Maximum allowed size is 20Mb)
|Unsupported content-type: expected
|The uploaded file is not an image
|Uploading of the image file failed or there was an internal server error while processing a file. On of possible reasons is image