Skip to main content

Adds a tag to a feature.

POST <your-unleash-url>/api/admin/features/:featureName/tags

Authorization

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

Adds a tag to a feature if the feature and tag type exist in the system. The operation is idempotent, so adding an existing tag will result in a successful response.

Request

Path Parameters

  • featureName string required

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

    The type of the tag

Responses

The resource was successfully created.

Response Headers
  • location string

    The location of the newly created resource.

Schema
  • 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
featureName — path required
Body required
{
"value": "a-tag-value",
"type": "simple"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/features/:featureName/tags' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"value": "a-tag-value",
"type": "simple"
}'