Skip to main content

Create a new tag.

POST 

/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
Loading...