Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__update Product

Product will update on which tenant user has access to. 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).

MUTATIONinventory__updateProduct(input: UpdateProductInput!, where: CommonFindDocumentDto!): Boolean!

Product will update on which tenant user has access to. 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*
where*

Returns

inventory__updateProduct*Boolean!
Example Request
mutation Inventory__updateProduct($input: UpdateProductInput!, $where: CommonFindDocumentDto!) {  inventory__updateProduct(input: $input, where: $where)}
Variables
{  "input": {    "allowBackorder": false,    "initialQuantity": 0,    "lowStockThreshold": 0,    "trackInventory": true  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "inventory__updateProduct": true  }}