Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__create Collection

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

MUTATIONinventory__createCollection(body: CreateCollectionInput!, tenant: String): CommonMutationResponse!

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

Arguments

body*
tenant?String

Returns

  1. inventory__createCollection
_id*ID!
Example Request
mutation Inventory__createCollection($body: CreateCollectionInput!) {  inventory__createCollection(body: $body) {    _id  }}
Variables
{  "body": {    "name": "string"  }}
Example Response
{  "data": {    "inventory__createCollection": {      "_id": "1"    }  }}