Sign in

Assign tags to a customer

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

Attaches one or more tags to a customer. The body is a JSON array of tag integer IDs. For each tag: a person_tag_history row is recorded with action = QUALIFIED and the tag is inserted; if the link already exists, its count column is incremented (ON DUPLICATE KEY UPDATE count = count + 1).

The response is a flat list of all tag IDs currently attached to the customer.

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.

Path parameters

Name Type Description
personId * integer Internal Guper customer ID.

Request body

Content-Type: application/json

[101, 102, 103]

Responses

[1, 101, 102, 103]
Copied to clipboard