Create a segment
Creates a new segment.
POST/v3/segments
JWTsegment:write
Request body
namestringrequired
Name of the segment. Any printable characters, including letters from any script, punctuation and emoji. Cannot contain line breaks, tabs, other control characters, invisible formatting characters (zero-width and bidirectional marks), and cannot start or end with whitespace.
Length: [1,256]Pattern: ^(?!\s)(?!.*\s$)[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+$
resourcestringrequired
Name of the resource.
Min length: 1
filtersarray of objectrequired
Filter for the segment.
Response
201
400
401
403
409
429
500
201 Created
idstringrequired
createdAtstringrequired
Format: date-time
updatedAtstringrequired
Format: date-time
namestringrequired
resourcestringrequired
filtersarray of objectrequired