POST
/
v1
/
public
/
groups

This endpoint allows you to upsert new or existing Groups. If the group already exists, it will be updated with the new data. Any property left unchanged will not be modified. Changes to tracking events are append-only.

Authorizations

Authorization
string
headerrequired

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
groupId
string
required

The ID of the group as defined in your own application

userId
string

The ID of the user as defined in your own application

properties
object

Optional properties to add to the group

events
object[]

Optional tracking events to add to the group