Why can't I set inventory to 0 when duplicating a product?

Why can't I set inventory to 0 when duplicating a product?

Ethan_sh
Shopify Partner
3 0 2

I try to set inventory 0 when duplicate product. My argument :

copyAvailability: true

copyBarcode: false

copyInventoryQuantity: false

copySku: false

includeImages: false

newStatus: "DRAFT"

newTitle: "Copy of "

productId: "gid://shopify/Product/7343144599718"

Get error no argument [copyAvailability, copyBarcode, copyInventoryQuantity...]

Replies 0 (0)