Supplier Tags Mutations

CreateSupplierTag

Create a supplier tag

Parameters

input - SupplierTagInput
Data of the supplier tag
mutation CreateSupplierTag($input: SupplierTagInput!) {
  CreateSupplierTag(input: $input) {
    id
    label
    active
  }
}
{
  "input": {
    "label": "Premium Partner"
  }
}
{
  "data": {
    "CreateSupplierTag": {
      "id": 100120,
      "label": "Premium Partner",
      "active": true
    }
  }
}

UpdateSupplierTag

Update a supplier tag

Parameters

id - ID
Id of the supplier tag
input - SupplierTagInput
Data of the supplier tag
mutation UpdateSupplierTag($id: ID!, $input: SupplierTagInput!) {
  UpdateSupplierTag(id: $id, input: $input) {
    id
    label
    active
  }
}
{
  "id": 100120,
  "input": {
    "label": "Strategic Partner"
  }
}
{
  "data": {
    "UpdateSupplierTag": {
      "id": 100120,
      "label": "Strategic Partner",
      "active": true
    }
  }
}

DeleteSupplierTag

Delete a supplier tag

Parameters

id - ID
Id of the supplier tag
mutation DeleteSupplierTag($id: ID!) {
  DeleteSupplierTag(id: $id)
}
{
  "id": 100120
}
{
  "data": { "DeleteSupplierTag": true }
}

DisableSupplierTag

Disable a supplier tag

Parameters

id - ID
Id of the supplier tag
mutation DisableSupplierTag($id: ID!) {
  DisableSupplierTag(id: $id) {
    id
    active
  }
}
{
  "id": 100120
}
{
  "data": {
    "DisableSupplierTag": {
      "id": 100120,
      "active": false
    }
  }
}

EnableSupplierTag

Enable a supplier tag

Parameters

id - ID
Id of the supplier tag
mutation EnableSupplierTag($id: ID!) {
  EnableSupplierTag(id: $id) {
    id
    active
  }
}
{
  "id": 100120
}
{
  "data": {
    "EnableSupplierTag": {
      "id": 100120,
      "active": true
    }
  }
}

SupplierTagInput data type

id - ID
Identifier (optional)
label - String
Name/Label of the tag