Commerce

Remove images

Removes images from the product by image id (the id on each image). The file stays in the store's media library. Needs the products.images_remove capability.

delete/v1/commerce/products/{productId}/images

Path parameters

productIdstring required

Platform-native id.

Query parameters

accountIdstring required

Connected store SocialAccount id.

imageIdsstring required

Comma-separated ids.

Response

Product after the change

Example response

{
  "product": {
    "variants": [
      {
        "price": {
          "amount": "19.90",
          "currency": "USD"
        },
        "compareAtPrice": {
          "amount": "19.90",
          "currency": "USD"
        }
      }
    ]
  }
}

Changes

Changed in 2 of the 60 revisions of this API.2