---
title: "Edit tag by id"
method: POST
path: "/tag/{id}/edit"
tags: ["Tags"]
---

# Edit tag by id

`POST /tag/{id}/edit`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/tag/{id}/edit`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/tag/:id/edit/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `name` string, required: Name of the tag

## Response `200`

OK

- object
  - `affectedRows` integer

## Other responses

- `401`: Unauthorized
- `404`: The specified resource was not found
- `500`: Internal server error

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
