Passer au contenu principal
POST
Create a segment for the Experiment Center.

Autorisations

Authorization
string
header
requis

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

Corps

Create a segment for experiment targeting

name
string
requis

A human-readable name for the segment

Required string length: 3 - 255
Pattern: ^(?!.*\x00)\S(.*\S)?$
rules
object[]
requis

An ordered list of rules. A segment matches if any rule matches.

Minimum array length: 1
description
string

A description of the segment

Required string length: 3 - 1024
Pattern: ^(?!.*\x00)\S(.*\S)?$

Réponse

Segment successfully created.

id
string
requis
Pattern: ^seg_[A-HJ-NP-Za-km-z1-9]+$
name
string
requis
type
enum<string>
requis
Options disponibles:
self,
auth0
rules
object[]
requis
created_at
string<date-time>
requis
updated_at
string<date-time>
requis
description
string