Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__bulk Remove Stock

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).

MUTATIONinventory__bulkRemoveStock(input: BulkRemoveStockInput!): BulkStockMutationResult!

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).

Arguments

input*

Returns

  1. inventory__bulkRemoveStock
affectedCount*Int!
requestedCount*Int!
Example Request
mutation Inventory__bulkRemoveStock($input: BulkRemoveStockInput!) {  inventory__bulkRemoveStock(input: $input) {    affectedCount    requestedCount  }}
Variables
{  "input": {    "productIds": [      "1"    ]  }}
Example Response
{  "data": {    "inventory__bulkRemoveStock": {      "affectedCount": 10,      "requestedCount": 10    }  }}