Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__update Variant Template

Variant template will update on which tenant user has access to. Requires a signed-in staff user. Needs the `inventory__VariantTemplate` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONinventory__updateVariantTemplate(body: UpdateVariantTemplateInput!, where: CommonFindDocumentDto!): Boolean!

Variant template will update on which tenant user has access to. Requires a signed-in staff user. Needs the inventory__VariantTemplate update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

body*
where*

Returns

inventory__updateVariantTemplate*Boolean!
Example Request
mutation Inventory__updateVariantTemplate($body: UpdateVariantTemplateInput!, $where: CommonFindDocumentDto!) {  inventory__updateVariantTemplate(body: $body, where: $where)}
Variables
{  "body": {    "configs": [      {        "attributes": [          "string"        ],        "name": "string"      }    ],    "description": "string"  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "inventory__updateVariantTemplate": true  }}