Mutation

update_tag

Updates an existing tag.

Arguments

input: UpdateTagInput!


Input Fields

id(): ID!
The unique identifier of the tag to update.
name(): String!
The name of the tag.
description(): String
The description of the tag.
color(): TagColor!
The color of the tag.

Return Fields

tag(): Tag!
The updated tag.

Example

Query
mutation UpdateTag($input: UpdateTagInput!) {
  update_tag(input: $input) {
    tag {
      id
      name
      description
      color
    }
  }
}
Variables
{
  "input": {
    "id": "4",
    "name": "Europe",
    "description": "Sites hosted in European Union data centers",
    "color": "NAVY"
  }
}
Result
{
  "data": {
    "update_tag": {
      "tag": {
        "id": "4",
        "name": "Europe",
        "description": "Sites hosted in European Union data centers",
        "color": "NAVY"
      }
    }
  }
}