---
updatedAt: 2026-06-08T17:29:09.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Create a tag

Creates a new tag and lets you optionally add it to specific objects. Tags are labels you can attach to objects in your account. Use them to specify and group attributes of objects that are relevant to you. Currently, you can add a tag to your `linodes`, your `nodebalancers`, your `reserved_ipv4_addresses`, the `domains` for your Linodes, and the `volumes` on your Linodes.

> 📘
>
> - This operation can only be accessed by account users with _unrestricted_ access. Talk to your local account administrator about access management.
>
> - If you don't add a tag to a supported object with this operation, you can use that object's update operation to later add the tag you created.


**Permissions and scopes**

To call this operation, you need the following:

- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `account:read_write`


**CLI**

```shell
linode-cli tags create \
  --label 'example tag' \
  --linodes 123 \
  --linodes 456 \
  --volumes 9082 \
  --volumes 10003 \
  --reserved_ipv4_addresses "192.0.2.141"
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read-write": "Allows access to all Monitor (Akamai Cloud Pulse) endpoints.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Tags",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/tags": {
      "post": {
        "description": "Creates a new tag and lets you optionally add it to specific objects. Tags are labels you can attach to objects in your account. Use them to specify and group attributes of objects that are relevant to you. Currently, you can add a tag to your `linodes`, your `nodebalancers`, your `reserved_ipv4_addresses`, the `domains` for your Linodes, and the `volumes` on your Linodes.\n\n> 📘\n>\n> - This operation can only be accessed by account users with _unrestricted_ access. Talk to your local account administrator about access management.\n>\n> - If you don't add a tag to a supported object with this operation, you can use that object's update operation to later add the tag you created.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `account:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli tags create \\\n  --label 'example tag' \\\n  --linodes 123 \\\n  --linodes 456 \\\n  --volumes 9082 \\\n  --volumes 10003 \\\n  --reserved_ipv4_addresses \"192.0.2.141\"\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/post-tag"
        },
        "operationId": "post-tag",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "domains": [
                  564,
                  565
                ],
                "label": "example tag",
                "linodes": [
                  123,
                  456
                ],
                "nodebalancers": [
                  10301,
                  10501
                ],
                "reserved_ipv4_addresses": [
                  "192.0.2.141",
                  "192.0.2.142"
                ],
                "volumes": [
                  9082,
                  10003
                ]
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "domains": {
                    "description": "The `id` values for the domains where you want to apply the tag. You need `read_write` access to each domain. If you don't, the API won't create the tag and you'll receive an error. You can run the [List domains](https://techdocs.akamai.com/linode-api/reference/get-domains) operation to store the `id` for desired domains and to review any `tags` currently applied.",
                    "example": [
                      564,
                      565
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "label": {
                    "description": "The name of your tag. This is used for display purposes.",
                    "example": "example tag",
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string"
                  },
                  "linodes": {
                    "description": "The `id` values for the Linodes where you want to apply the tag. You need `read_write` access to each Linode. If you don't, the API won't create the tag and you'll receive an error. You can run the [List Linodes](https://techdocs.akamai.com/linode-api/reference/get-linode-instances) operation to store the `id` for desired Linodes and to review any `tags` currently applied.",
                    "example": [
                      123,
                      456
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "nodebalancers": {
                    "description": "The `id` values for the NodeBalancers where you want to apply the tag. You need `read_write` access to each NodeBalancer. If you don't, the API won't create the tag and you'll receive an error. You can run the [List NodeBalancers](https://techdocs.akamai.com/linode-api/reference/get-node-balancers) operation to store the `id` for desired NodeBalancers and to review any `tags` currently applied.",
                    "example": [
                      10301,
                      10501
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "reserved_ipv4_addresses": {
                    "description": "The reserved IPv4 addresses where you want to apply the tag. Each IP must be reserved on your account before you can tag it. Run the [Reserve a public IPv4 address](https://techdocs.akamai.com/linode-api/reference/post-reserved-ip) operation to reserve one.",
                    "example": [
                      "192.0.2.141",
                      "192.0.2.142"
                    ],
                    "items": {
                      "format": "ipv4",
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "volumes": {
                    "description": "The `id` values for the Linode volumes where you want to apply the tag. You need `read_write` access to each volume. If you don't, the API won't create the tag and you'll receive an error. You can run the [List volumes](https://techdocs.akamai.com/linode-api/reference/get-volumes) operation to store the `id` for desired Linode volumes and to review any `tags` currently applied.",
                    "example": [
                      9082,
                      10003
                    ],
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "label"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/added-post-tag.yaml"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "label": "example tag"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "A tag you've created to apply to objects on your account. Tags are for organizational purposes only.",
                  "properties": {
                    "label": {
                      "description": "The name of the tag used for organization of objects on your account.",
                      "example": "example tag",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/tag.yaml"
                  }
                }
              }
            },
            "description": "The new tag."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](https://techdocs.akamai.com/linode-api/reference/post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](https://techdocs.akamai.com/linode-api/reference/errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "account:read_write"
            ]
          }
        ],
        "summary": "Create a tag",
        "tags": [
          "Tags"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli tags create \\\n  --label 'example tag' \\\n  --linodes 123 \\\n  --linodes 456 \\\n  --volumes 9082 \\\n  --volumes 10003 \\\n  --reserved_ipv4_addresses \"192.0.2.141\"",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            },
            {
              "syntax": "account:read_write",
              "title": "OAuth scopes",
              "url": "https://techdocs.akamai.com/linode-api/reference/get-started#oauth"
            }
          ]
        },
        "x-linode-cli-action": "create",
        "x-linode-grant": "unrestricted only"
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/tags.yaml",
        "path-info": "/{apiVersion}/tags"
      },
      "x-linode-cli-command": "tags"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Use tags to organize and group your various Akamai cloud computing services. You can create a common tag and assign it to similar objects on your account to help organize them.",
      "name": "Tags"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "tags.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [List tags](https://techdocs.akamai.com/linode-api/reference/get-tags.md)
* [List tagged objects](https://techdocs.akamai.com/linode-api/reference/get-tagged-objects.md)
* [Delete a tag](https://techdocs.akamai.com/linode-api/reference/delete-tag.md)