Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Inventory__update Collection

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

MUTATIONinventory__updateCollection(body: UpdateCollectionInput!, where: CommonFindDocumentDto!): Boolean!

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

Arguments

body*
where*

Returns

inventory__updateCollection*Boolean!
Example Request
mutation Inventory__updateCollection($body: UpdateCollectionInput!, $where: CommonFindDocumentDto!) {  inventory__updateCollection(body: $body, where: $where)}
Variables
{  "body": {    "description": "string",    "logo": {      "external": "string",      "fileAssetId": "1"    }  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "inventory__updateCollection": true  }}