delete_product_images
Remove specific images from a product's gallery by providing product ID and image IDs. Permanently deletes images; if the main image is removed, the next image in the album becomes the new main image.
Instructions
[WRITE] 刪除商品圖片。
【用途】 從商品相簿中刪除指定圖片。適用於移除過時圖片或錯誤上傳的圖片。
【呼叫的 Shopline API】
DELETE /v1/products/{product_id}/images
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
永久刪除指定圖片,不可復原
若被刪除的圖片為商品主圖,商品主圖將自動替換為相簿中下一張圖片
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_ids | Yes | 要刪除的圖片 ID 列表 | |
| product_id | Yes | 商品內部 ID |