post https://app.ecwid.com/api/v3//products//gallery/video
Upload video to the product gallery using URL
Access scopes
Requires the following access scope: update_catalog
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorize request with an access token. Format:Bearer access_token .Example: Bearer secret_ab***cd , where secret_ab***cd is your access token. |
Content-Type | string | Value must be "application/json;charset=utf-8" |
url | string | URL of the video |
Response
A JSON object of type 'CreateStatus' with the following fields:
UploadStatus
Field | Type | Description |
---|---|---|
id | number | Internal video ID |
Errors
In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing error description
HTTP codes
HTTP Status | Description |
---|---|
400 | Request parameters are malformed |
402 | The functionality/method is not available on the merchant plan |
403 | Access token doesn't have update_catalog scope |
404 | Product is not found |
422 | The added file is not a video |
500 | Adding video process failed or there was an internal server error while processing a link |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |