Skip to main content
POST
Create a segment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string

Path Parameters

user_model_id
string<uuid>
required

Body

application/json
name
string
required

A short name, e.g. 'Londoners 45-64'

Required string length: 1 - 200
filters
Filters · object
required

Each attribute mapped to the values to keep, using exact values from /v1/user-models/{id}/attributes, e.g. {"age": ["45-54", "55-64"], "location": ["london"]}. A simulated user is in the segment when their value is one of the listed values for every attribute given.

description
string
default:""
Maximum string length: 2000

Response

Successful Response