---
updatedAt: 2026-10-16T12:44:44.000Z
---

# Add tag(s) to a vulnerability

This operation enables you to add one or more tags to the specified vulnerability.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "Vuln API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/vuln/{vuln_id}/tag": {
      "post": {
        "tags": [
          "Vuln API v1.0"
        ],
        "summary": "Add tag(s) to a vulnerability",
        "description": "This operation enables you to add one or more tags to the specified vulnerability.",
        "operationId": "addTagsToVuln",
        "parameters": [
          {
            "name": "vuln_id",
            "in": "path",
            "description": "Vulnerability ID.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Requested resource format for the response.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "xml",
              "example": "json",
              "enum": [
                "json",
                "xml"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "A list of tags to be submitted.",
          "content": {
            "application/json": {
              "encoding": {},
              "schema": {
                "$ref": "#/components/schemas/VulnTagCollection"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Provides information on the vulnerability, including the new list of tags.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VulnerabilityJSON"
                }
              },
              "text/xml": {
                "example": "XML preview is currently not supported."
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "Headers": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "Response": {
        "type": "object",
        "properties": {
          "status": {
            "type": "number"
          },
          "error": {
            "type": "number"
          },
          "body": {
            "properties": {
              "content": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "body_match": {
            "properties": {
              "content": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "headers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Headers"
            }
          }
        }
      },
      "Request": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "nullable": true
          },
          "param_value": {
            "type": "string",
            "nullable": true
          },
          "param_name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "headers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Headers"
            }
          }
        }
      },
      "Note": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "VulnTags": {
        "type": "array",
        "description": "A list of replacement tags to be submitted.",
        "items": {
          "type": "string"
        }
      },
      "AttackVector": {
        "type": "object",
        "properties": {
          "tested": {
            "type": "string"
          },
          "flagged": {
            "type": "number"
          },
          "request": {
            "$ref": "#/components/schemas/Request"
          },
          "has_notes": {
            "type": "number"
          },
          "state": {
            "type": "string"
          },
          "found": {
            "type": "string"
          },
          "response": {
            "$ref": "#/components/schemas/Response"
          },
          "id": {
            "type": "string"
          },
          "opened": {
            "type": "string"
          },
          "notes": {
            "$ref": "#/components/schemas/Notes"
          },
          "scanner_tags": {
            "$ref": "#/components/schemas/VulnTags"
          },
          "auth_details": {
            "type": "string"
          },
          "unreachable": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "Vulnerability": {
        "type": "object",
        "properties": {
          "auth_details": {
            "type": "string"
          },
          "opened": {
            "type": "string",
            "format": "date-time"
          },
          "severity": {
            "type": "string"
          },
          "risk": {
            "type": "number"
          },
          "site": {
            "type": "string"
          },
          "has_notes": {
            "type": "string"
          },
          "found": {
            "type": "string"
          },
          "attack_vectors": {
            "$ref": "#/components/schemas/AttackVectors"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "accepted": {
            "type": "number"
          },
          "impact": {
            "type": "number"
          },
          "default_description": {
            "type": "string"
          },
          "first_opened": {
            "type": "string"
          },
          "bla_id": {
            "type": "string"
          },
          "service_level_abbr": {
            "type": "string"
          },
          "out_of_scope_reasons": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "qanda": {
            "$ref": "#/components/schemas/Qandas"
          },
          "class": {
            "type": "string"
          },
          "threat": {
            "type": "string"
          },
          "score": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "modified": {
            "type": "string",
            "format": "date-time"
          },
          "retest_state": {
            "type": "string"
          },
          "site_name": {
            "type": "string"
          },
          "custom_risk": {
            "type": "number",
            "nullable": true
          },
          "cvss_v3_score": {
            "type": "string",
            "nullable": true
          },
          "cvss_v3_score_rating": {
            "type": "string",
            "nullable": true
          },
          "cvss_v3_vector": {
            "type": "string",
            "nullable": true
          },
          "cvss_v3_environmental_score": {
            "type": "string",
            "nullable": true
          },
          "cvss_v3_environmental_score_rating": {
            "type": "string",
            "nullable": true
          },
          "cvss_v3_environmental_vector": {
            "type": "string",
            "nullable": true
          },
          "is_manual": {
            "type": "number"
          },
          "url": {
            "type": "string"
          },
          "likelihood": {
            "type": "number"
          },
          "status": {
            "type": "string"
          },
          "href": {
            "type": "string"
          },
          "tags": {
            "$ref": "#/components/schemas/VulnTags"
          },
          "customized_on": {
            "type": "string",
            "format": "date-time"
          },
          "default_solution": {
            "type": "string"
          },
          "custom_policy_name": {
            "type": "string"
          },
          "customized_by": {
            "type": "string"
          },
          "custom_policy_reason": {
            "type": "string"
          },
          "custom_policy_description": {
            "type": "string"
          },
          "unreachable": {
            "type": "number",
            "nullable": true
          },
          "verification_status": {
            "type": "string",
            "description": "Whether this vulnerability has completed WhiteHat verification.\nVulnerabilities from Fast DAST scans are reported as 'unverified'\nuntil verification completes; all other vulnerabilities are\n'verified'.",
            "enum": [
              "verified",
              "unverified"
            ]
          }
        }
      },
      "SolutionJSON": {
        "properties": {
          "solution": {
            "type": "object",
            "properties": {
              "omit_default_solution": {
                "type": "number",
                "nullable": true
              },
              "solution": {
                "type": "string"
              },
              "solution_prepend": {
                "type": "string",
                "nullable": true
              }
            }
          }
        }
      },
      "DescriptionJSON": {
        "properties": {
          "description": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "omit_default_description": {
                "type": "number",
                "nullable": true
              },
              "description_prepend": {
                "type": "string",
                "nullable": true
              }
            }
          }
        }
      },
      "VulnerabilityJSON": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Vulnerability"
          },
          {
            "$ref": "#/components/schemas/SolutionJSON"
          },
          {
            "$ref": "#/components/schemas/DescriptionJSON"
          }
        ]
      },
      "AttackVectors": {
        "type": "array",
        "default": [],
        "items": {
          "$ref": "#/components/schemas/AttackVector"
        }
      },
      "Notes": {
        "type": "array",
        "nullable": true,
        "default": [],
        "items": {
          "$ref": "#/components/schemas/Note"
        }
      },
      "VulnTagCollection": {
        "type": "object",
        "properties": {
          "tags": {
            "$ref": "#/components/schemas/VulnTags"
          }
        }
      },
      "Answer": {
        "type": "object",
        "nullable": true,
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "answer": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          }
        }
      },
      "Qanda": {
        "type": "object",
        "nullable": true,
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "question": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "answer": {
            "$ref": "#/components/schemas/Answer"
          }
        }
      },
      "Qandas": {
        "type": "array",
        "nullable": true,
        "default": [],
        "items": {
          "$ref": "#/components/schemas/Qanda"
        }
      }
    }
  }
}
```