Skip to main content

ProductTag

By using this api, you can manage tags of your products.

Models

ProductTag

type ProductTag {
id: ID!
name: String!
translations: [ProductTagTranslation!]
}

Fields

idID!required
nameString!required

The name of the product's tag.

The name of the product's tag.

ProductTagTranslation

type ProductTagTranslation {
description: String
locale: String!
name: String
}

Fields

descriptionString

It is the description information of the translation.

localeString!required

It is the name information of the translation.

nameString

It is the information in which language the translation is saved.

Queries

List Product Tags

Using this api, you can view the tags of products.

listProductTag(
id: StringFilterInput
name: StringFilterInput
updatedAt: DateFilterInput
): [ProductTag!]!

Arguments

You can filter by product tag name.

Return Type

ProductTagProductTag

Mutations

Save Product Tag

Using this api, you can update the tags of products.

saveProductTag(
input: ProductTagInput!
): ProductTag!

Arguments

inputProductTagInput!required

Return Type

ProductTagProductTag

Delete Product Tag List

Using this api, you can delete the tags of products.

deleteProductTagList(
idList: [String!]!
): Boolean!

Arguments

idList[String!]!required

Return Type

BooleanBoolean

The Boolean scalar type represents true or false.

Examples

Retrieves a list of tags

curl --location --request POST 'https://api.myikas.com/api/v1/admin/graphql' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your_access_token>' \
--data-raw '{"query":"{ listProductTag { id name } }"}'

Response

{
"data": {
"listProductTag": [
{
"id": "a8befae6-2cb9-487a-bd7f-5e0bfff3676b",
"name": "Tag name"
}
]
}
}