Inventory__apply Technical Specification Template To Products
Copies the template's specifications into the given products. A product specification with the same key is replaced; other specifications are kept. Returns the number of products updated. Requires a signed-in staff user. Needs the `inventory__Product` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
inventory__applyTechnicalSpecificationTemplateToProducts(productIds: [ID!]!, templateId: ID!): Int!Copies the template's specifications into the given products. A product specification with the same key is replaced; other specifications are kept. Returns the number of products updated. Requires a signed-in staff user. Needs the inventory__Product update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
productIds*[ID!]!templateId*ID!Returns
inventory__applyTechnicalSpecificationTemplateToProducts*Int!mutation Inventory__applyTechnicalSpecificationTemplateToProducts($productIds: [ID!]!, $templateId: ID!) { inventory__applyTechnicalSpecificationTemplateToProducts( productIds: $productIds templateId: $templateId )}{ "productIds": [ "1" ], "templateId": "1"}{ "data": { "inventory__applyTechnicalSpecificationTemplateToProducts": 10 }}Inventory__apply Seed Dataset MUTATION
Creates sample products/collections from a curated dataset. Existing handles are skipped. Products are marked isDemo. Requires a signed-in staff user. Needs the `inventory__Product` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__apply Variant Template To Products MUTATION
Copies the template's option groups onto the given products. A product option group with the same name is replaced; other groups are kept. Combinations that still match keep their price, SKU, and images. Returns the number of products updated. Requires a signed-in staff user. Needs the `inventory__Product` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).