Sign in

Create segmentation tag

POST https://{organization}.myguper.com/api/register/tags

Creates a tag in the organization's segmentation taxonomy. Tags belong to a category (which itself has a type — tier, behavior, customerTag, … — that decides which manager handles the tag). The endpoint dispatches to the matching Segmentation\Manager based on the resolved category type, defaulting to the Standard manager when no special handler is registered.

Try-it values populated from environment ACME (Demo)


Authentication

Token

Send your user token in the x-guper-authorization header.

Headers

Name Type Description
x-guper-authorization * string User token issued by Guper.
Content-Type * string Always `application/json` for endpoints that accept a JSON body.

Request body

Content-Type: application/json

{
    "name": "VIP",
    "category": 7,
    "priority": 100,                                            // optional
    "data": {                                                   // optional
        "color": "#FFD700"
    }
}

Responses

{
    "id": 42,
    "name": "VIP",
    "type": null,
    "category": 7,
    "priority": 100,
    "data": { "color": "#FFD700" }
}
Copied to clipboard