Core GraphQL APIReferenceMutations
Inventory__bulk Update Products
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).
MUTATION
inventory__bulkUpdateProducts(input: BulkUpdateProductsInput!): BulkProductsMutationResult!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__bulkUpdateProducts
affectedCount*Int!requestedCount*Int!Example Request
mutation Inventory__bulkUpdateProducts($input: BulkUpdateProductsInput!) { inventory__bulkUpdateProducts(input: $input) { affectedCount requestedCount }}{ "input": { "ids": [ "1" ] }}{ "data": { "inventory__bulkUpdateProducts": { "affectedCount": 10, "requestedCount": 10 } }}Inventory__bulk Remove Stock MUTATION
Requires a signed-in staff user. Needs the `inventory__Stock` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__create Collection MUTATION
Collection will create on which tenant user has access to. Requires a signed-in staff user. Needs the `inventory__Collection` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).