Skip to main content

Create a new tag.

POST 

https://us.app.unleash-hosted.com/ushosted/api/admin/tags

Create a new tag with the specified data.

Request

Body

required

createTagSchema

    value stringrequired

    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.

    Possible values: Value must match regular expression ^\s*\S.{0,48}\S\s*$

    Example: a-tag-value
    type stringrequired

    The type of the tag

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

    Example: simple

Responses

The resource was successfully created.

Response Headers

  • location

    string

    The location of the newly created resource.

Schema

    version integerrequired

    The version of the schema used to model the tag.

    Example: 1

    tag

    object

    required

    Representation of a tag

    value stringrequired

    The value of the tag.

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

    Example: a-tag-value
    type stringrequired

    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 'https://us.app.unleash-hosted.com/ushosted/api/admin/tags' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"value": "a-tag-value",
"type": "simple"
}'
Request Collapse all
Base URL
https://us.app.unleash-hosted.com/ushosted
Auth
Body required
{
  "value": "a-tag-value",
  "type": "simple"
}
ResponseClear

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