Skip to main content

Create a new tag.

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

Authorization

name: Authorizationtype: apiKeyin: header

Create a new tag with the specified data.

Request

Body

required

tagSchema

  • 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

    Default value: simple

    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

    Default value: simple

    The type of the tag

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
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"
}'