Inventory__detach Collection From Products
Removes one collection from products, leaving their other collections intact. 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__detachCollectionFromProducts(input: DetachCollectionFromProductsInput!): BulkProductsMutationResult!Removes one collection from products, leaving their other collections intact. 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
input*Returns
- inventory__detachCollectionFromProducts
affectedCount*Int!requestedCount*Int!mutation Inventory__detachCollectionFromProducts($input: DetachCollectionFromProductsInput!) { inventory__detachCollectionFromProducts(input: $input) { affectedCount requestedCount }}{ "input": { "collectionId": "1" }}{ "data": { "inventory__detachCollectionFromProducts": { "affectedCount": 10, "requestedCount": 10 } }}Inventory__create Variant Template MUTATION
Variant template will create on which tenant user has access to. Requires a signed-in staff user. Needs the `inventory__VariantTemplate` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__initialize Stock MUTATION
Requires a signed-in staff user. Needs the `inventory__Stock` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).