Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__create Variant Template

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

MUTATIONinventory__createVariantTemplate(body: CreateVariantTemplateInput!, tenant: String): CommonMutationResponse!

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

Arguments

body*
tenant?String

Returns

  1. inventory__createVariantTemplate
_id*ID!
Example Request
mutation Inventory__createVariantTemplate($body: CreateVariantTemplateInput!) {  inventory__createVariantTemplate(body: $body) {    _id  }}
Variables
{  "body": {    "configs": [      {        "attributes": [          "string"        ],        "name": "string"      }    ],    "name": "string"  }}
Example Response
{  "data": {    "inventory__createVariantTemplate": {      "_id": "1"    }  }}