Create tag value

Creates a tag value. The tag category can be specified by UUID or name. If Tenable Vulnerability Management cannot find a category you specify by name, the system creates a new category with the specified name. To automatically apply the tag to assets, specify the rules using the filters property.

Requires the Scan Manager [40] user role. See Roles.

Log in to see full request history
Body Params
string

The name of the tag category to associate with the new value.

Specify the name of a new category if you want to add both a new category and tag value.

Specify the name of an existing category if you want to add the tag value to the existing category.

The category_name can result in the following responses:

  • If the category_name you specify exists, and the tag value you specify already exists for that category, Tenable Vulnerability Management returns a 400 response code instead of adding the tag.

  • If the category_name you specify exists, but the tag value you specify does not yet exist for that category, Tenable Vulnerability Management adds the tag value to the existing category.

  • If the category_name you specify does not exist, Tenable Vulnerability Management creates a new tag category and adds the new tag value to that category.

This parameter is required if category_uuid is not present in the request message.

string

The UUID of the tag category to associate with the new value. For more information on determining this value, see Determine Tag Identifiers.

Use this parameter only if you want to add the tag value to an existing category. If the UUID you specify does not exist, Tenable Vulnerability Management does not create a new catgory. Instead, it returns a 400 (Bad Request) response code.

This parameter is required if category_name is not present in the request message.

string

The description for the new tag category that Tenable Vulnerability Management creates if the category specified by name does not exist. Otherwise, Tenable Vulnerability Management ignores the description.

string
required

The new tag value. Note that tag values cannot exceed 50 characters in length and must not contain commas.

string

The new tag value description.

access_control
object

Determines what the user can do with the tag value.

Caution: Most customers have been migrated to role-based access control and should use the POST /api/v3/access-control/permissions endpoint to assign permissions to tag objects. The access_control body parameter object only works for customers whose containers have not yet been migrated to role-based access control.

filters
object

The filters (conditional sets of rules) for automatically applying the tag to assets. For more information, see Apply Dynamic Tags.

Responses

400

Returned if Tenable Vulnerability Management encounters any of the following error conditions:

  • the combination of category and value you specified already exists (duplicate)
  • the category you specified does not exist (not_found)
  • your request exceeded a tag limit for your organization, which can be either the maximum of 100 categories or the maximum 100,000 tags for each category, or as configured for your organization
  • your request body is greater than 1 MB
  • you attempted to specify more than 1,000 rules for an individual tag (Filter expression cannot have more than 1,000 conditions)
  • your request specified an invalid filter for the dynamic tag rule, for example, ipv 4 (The following filter types are not valid: {string}).

Language
Credentials
Request