See the Queries page for a presentation of this resource.
Create a supplier tag
GraphQL
mutation CreateSupplierTag($input: SupplierTagInput!) {
CreateSupplierTag(input: $input) {
id
label
active
}
}
JSON
{
"input": {
"label": "Premium Partner"
}
}
JSON
{
"data": {
"CreateSupplierTag": {
"id": 100120,
"label": "Premium Partner",
"active": true
}
}
}
Update a supplier tag
id - ID Id of the supplier tag
GraphQL
mutation UpdateSupplierTag($id: ID!, $input: SupplierTagInput!) {
UpdateSupplierTag(id: $id, input: $input) {
id
label
active
}
}
JSON
{
"id": 100120,
"input": {
"label": "Strategic Partner"
}
}
JSON
{
"data": {
"UpdateSupplierTag": {
"id": 100120,
"label": "Strategic Partner",
"active": true
}
}
}
Delete a supplier tag
id - ID Id of the supplier tag
GraphQL
mutation DeleteSupplierTag($id: ID!) {
DeleteSupplierTag(id: $id)
}
JSON
{
"data": { "DeleteSupplierTag": true }
}
Disable a supplier tag
id - ID Id of the supplier tag
GraphQL
mutation DisableSupplierTag($id: ID!) {
DisableSupplierTag(id: $id) {
id
active
}
}
JSON
{
"data": {
"DisableSupplierTag": {
"id": 100120,
"active": false
}
}
}
Enable a supplier tag
id - ID Id of the supplier tag
GraphQL
mutation EnableSupplierTag($id: ID!) {
EnableSupplierTag(id: $id) {
id
active
}
}
JSON
{
"data": {
"EnableSupplierTag": {
"id": 100120,
"active": true
}
}
}
id - ID Identifier (optional)
label - String Name/Label of the tag