Skip to main content

Updates multiple tags for a feature.

PUT 

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

Receives a list of tags to add and a list of tags to remove that are mandatory but can be empty. All tags under addedTags are first added to the feature and then all tags under removedTags are removed from the feature.

Request

Path Parameters

    featureName stringrequired

Bodyrequired

updateTagsSchema

    addedTags object[]required

    Tags to add to the feature.

  • Array [
  • valuestringrequired

    The value of the tag.

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

    Example: a-tag-value
    typestringrequired

    The type of the tag

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

    Example: simple
  • ]
  • removedTags object[]required

    Tags to remove from the feature.

  • Array [
  • valuestringrequired

    The value of the tag.

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

    Example: a-tag-value
    typestringrequired

    The type of the tag

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

    Example: simple
  • ]

Responses

The resource was successfully created.

Response Headers
    location

    The location of the newly created resource.

Schema
    versionintegerrequired

    The version of the schema used to model the tags.

    tags object[]required

    A list of tags.

  • Array [
  • valuestringrequired

    The value of the tag.

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

    Example: a-tag-value
    typestringrequired

    The type of the tag

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

    Example: simple
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/features/:featureName/tags' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"addedTags": [
{
"value": "tag-to-add",
"type": "simple"
}
],
"removedTags": [
{
"value": "tag-to-remove",
"type": "simple"
}
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "addedTags": [
    {
      "value": "tag-to-add",
      "type": "simple"
    }
  ],
  "removedTags": [
    {
      "value": "tag-to-remove",
      "type": "simple"
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!