Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__create Product

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

MUTATIONinventory__createProduct(body: CreateProductInput!, tenant: String): CommonMutationResponse!

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

Arguments

body*
tenant?String

Returns

  1. inventory__createProduct
_id*ID!
Example Request
mutation Inventory__createProduct($body: CreateProductInput!) {  inventory__createProduct(body: $body) {    _id  }}
Variables
{  "body": {    "allowBackorder": false,    "handle": "string",    "initialQuantity": 0,    "lowStockThreshold": 0,    "price": 10.5,    "title": "string",    "trackInventory": true  }}
Example Response
{  "data": {    "inventory__createProduct": {      "_id": "1"    }  }}