Create a new tag.

View as Markdown
Create a new tag with the specified data.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

createTagSchema
valuestringRequiredformat: "^\s*\S.{0,48}\S\s*$"
The value of the tag. The value must be between 2 and 50 characters long. Leading and trailing whitespace is ignored and will be trimmed before saving the tag value.
typestringRequired2-50 characters
The [type](https://docs.getunleash.io/concepts/feature-flags#tags) of the tag
colorstring or nullOptionalformat: "^#[0-9A-Fa-f]{6}$"
The hexadecimal color code for the tag type.

Response headers

locationstring
The location of the newly created resource.

Response

The resource was successfully created.
versioninteger
The version of the schema used to model the tag.
tagobject
Representation of a [tag](https://docs.getunleash.io/concepts/feature-flags#tags)

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
415
Unsupported Media Type Error