CreateProductTag
CreateProductTagCreates a new product tag.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | ProductTagInput! | Product tag data. |
Example Query:
mutation CreateProductTag($input: ProductTagInput!) {
CreateProductTag(input: $input) {
id
label
active
}
}Example Variables:
{
"input": {
"label": "Eco-Friendly"
}
}UpdateProductTag
UpdateProductTagUpdates an existing product tag.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the product tag. |
input | ProductTagInput! | Updated data. |
Example Query:
mutation UpdateProductTag($id: ID!, $input: ProductTagInput!) {
UpdateProductTag(id: $id, input: $input) {
id
label
}
}DeleteProductTag
DeleteProductTagDeletes a product tag.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the product tag to delete. |
DisableProductTag
DisableProductTagDeactivates a product tag so it cannot be used on new products.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the product tag to disable. |
EnableProductTag
EnableProductTagRe-activates a previously disabled product tag.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | Int! | ID of the product tag to enable. |
Input Data Types
ProductTagInput
ProductTagInput