Skip to main content

Create a new tag.

POST <your-unleash-url>/api/admin/tags

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Create a new tag with the specified data.

Request

Body

required

createTagSchema

  • value string required

    Possible values: Value must match regular expression ^\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.

  • type string required

    Possible values: >= 2 characters and <= 50 characters

    The type of the tag

Responses

The resource was successfully created.

Response Headers
  • location string

    The location of the newly created resource.

Schema
  • version integer required

    The version of the schema used to model the tag.

  • tag objectrequired

    Representation of a tag

  • value string required

    Possible values: >= 2 characters and <= 50 characters

    The value of the tag.

  • type string required

    Possible values: >= 2 characters and <= 50 characters

    The type of the tag

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
Body required
{
"value": "a-tag-value",
"type": "simple"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/tags' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"value": "a-tag-value",
"type": "simple"
}'