shop.product.images.update

Re-orders product images, updates their descriptions and deletes unused images.

Parameters

  • product_id GET

    Product ID.

  • images POST

    Array of product images data in the order in which they must be displayed in the product properties. Existing product images not included in the array are deleted from the server. The sub-array corresponding to each image must contain values with the following keys:
    — id Image ID.
    — description (optional) New image description.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Error codes

  • invalid_request

    Invalid formed request. Additional information about the error is available in error_description parameter.

  • access_denied

    Access to the specified API method for the current token is denied.

  • invalid_method

    Unknown API method.