Mutation
mutation TagCreate($input: TagCreateInput!) {
tagCreate(input: $input) {
errors {
code
message
}
tag {
createdAt
id
key
origin
updatedAt
value
}
}
}Variables
{
"input": {
"key": "string"
}
}Response
{
"data": {
"tagCreate": {
"errors": [
{
"code": "RESOURCE_IN_USE",
"message": "string"
}
],
"tag": {
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
}
}
}Mutations
tagCreate
Create a tag. Requires TAGS_WRITE permissions.
MUTATION
tagCreate(input: TagCreateInput!): TagCreateResult!Arguments
input
required
Returns
errors
[ApiError!]!
A list of errors that occurred during the create process.
tag
The tag created after a successful request.
Mutation
mutation TagCreate($input: TagCreateInput!) {
tagCreate(input: $input) {
errors {
code
message
}
tag {
createdAt
id
key
origin
updatedAt
value
}
}
}Variables
{
"input": {
"key": "string"
}
}Response
{
"data": {
"tagCreate": {
"errors": [
{
"code": "RESOURCE_IN_USE",
"message": "string"
}
],
"tag": {
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
}
}
}