group

Tie a user to a company and record the company's traits.

❗️

JSON expected

All Attribution server-side endpoints expect JSON

For how companies are created and updated, see the JavaScript Group method.

Pass userId and/or anonymousId to attach that visitor to the company. Without either, the call only creates or updates the company.

A note on Authorization header

Attribution app uses a HTTP Basic Authorization for all server-side functions.

Your HTTP request must contain Authorization header that must include username being your Project ID from Attribution app settings and blank password.

Body Params
string
required
Defaults to group

Type of event, must be always set to group.

string
required
Defaults to c_2207

Company ID from your database, up to 64 bytes. Every visitor grouped under the same ID belongs to the same company. A blank ID, or a placeholder such as 0, null or undefined, is ignored.

string
Defaults to test123

Unique identifier for the user in your database. Pass userId and/or anonymousId to attach that visitor to the company.

string

Attribution snippet generated cookie id, see identify doc for more info. Pass userId and/or anonymousId to attach that visitor to the company.

traits
object

Customizable key-value hash that describes the company. Traits you leave out keep their stored values.

Responses
200

The call is accepted. The response body is empty.

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json