Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__bulk Remove Products

Requires a signed-in staff user. Needs the `inventory__Product` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONinventory__bulkRemoveProducts(input: BulkRemoveProductsInput!): BulkProductsMutationResult!

Requires a signed-in staff user. Needs the inventory__Product delete permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*

Returns

  1. inventory__bulkRemoveProducts
affectedCount*Int!
requestedCount*Int!
Example Request
mutation Inventory__bulkRemoveProducts($input: BulkRemoveProductsInput!) {  inventory__bulkRemoveProducts(input: $input) {    affectedCount    requestedCount  }}
Variables
{  "input": {    "ids": [      "1"    ]  }}
Example Response
{  "data": {    "inventory__bulkRemoveProducts": {      "affectedCount": 10,      "requestedCount": 10    }  }}