Admin API / Types
ProductMediaChangesInput
InputChanges to some photos and videos of a listing. A stored item that no list names stays, in its order.
input ProductMediaChangesInputInput fields
| Field | Type | Description |
|---|---|---|
add | [ProductMediaInput!] | New photos and videos, after the stored items, in this order. When the listing has no item, the first is the primary item. Each item at most once; a second use fails with VALIDATION_ERROR. A Product.media ID gives MEDIA_NOT_FOUND. An item whose file a kept item holds, as an image or as a video, is not added again, and the call succeeds. |
remove | [ID!] | Stored items to remove, by their Product.media IDs. Each ID at most once; a second use fails with VALIDATION_ERROR. An ID that is not an item of the listing gives MEDIA_NOT_FOUND. |