product
product.image.add
Add image to product
post/product.image.add.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/product.image.add.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"type": "base,small",
"image_name": "bag-gray.png",
"variant_ids": "1,2,3,4,5",
"option_value_ids": "1,2,3,4,5",
"store_id": "1",
"url": "http://docs.api2cart.com/img/logo.png",
"content": "/9j/4AAQSkZ...gD/2Q==",
"label": "This cool image",
"mime": "image/jpeg",
"position": 5,
"use_latest_api_version": true,
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6"
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.