Authorizations
Authentication header of the form Bearer: <token>
, where <token>
is either your public or private API key. See when to use which
Body
application/json
The ID of the group as defined in your own application
Example:
"x34daa11-3745-4ac0-880e-d4b4d51fe13f"
The ID of the user as defined in your own application
Example:
"d34daa11-3745-4ac0-880e-d4b4d51fe13f"
Optional properties to add to the group
Example:
{
"name": "Acme Inc.",
"companyUrl": "https://example.com",
"logoUrl": "https://example.com/logo.jpg"
}
Optional tracking events to add to the group
Example:
[
{
"event": "SignedUp",
"properties": {
"source": "landing-page",
"campaign": "summer-sale"
}
}
]
Response
201
The group has been successfully created or updated