action api2cart_product_variant_image_add { label: "ProductVariantImageAdd" description: "Add image to product" provider: api2cart method: POST path: "/product.variant.image.add.json" encoding: json input: { type: "object" required: ["image_name", "product_variant_id", "type"] properties: { content: { type: "string" description: "Content(body) encoded in base64 of image file" } image_name: { type: "string" description: "Defines image's name" } label: { type: "string" description: "Defines alternative text that has to be attached to the picture" } mime: { type: "string" description: "Mime type of image http://en.wikipedia.org/wiki/Internet_media_type." } option_id: { type: "string" description: "Defines option id of the product variant for which the image will be added" } position: { type: "integer" description: "Defines image’s position in the list" } product_id: { type: "string" description: "Defines product id where the variant image has to be added" } product_variant_id: { type: "integer" description: "Defines product's variants specified by variant id" } store_id: { type: "string" description: "Store Id" } type: { type: "string" description: "Defines image's types that are specified by comma-separated list" enum: ["small", "base", "additional", "thumbnail"] } url: { type: "string" description: "Defines URL of the image that has to be added" } } } output: { type: "object" properties: { result: { type: "object" properties: { id: { type: "string" } image_path: { type: "string" } } } return_code: { type: "integer" } return_message: { type: "string" } } } }