Skip to main content
POST
Create segmentation rule

Authorizations

Authorization
string
header
required

Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.

Headers

segRule
string<application/json: {name:'name', locale:'en', primary:'false', filename:'extra_file.xml'}>
required
Maximum string length: 512

Body

application/octet-stream

streamed file

The body is of type object.

Response

Created

segmentation rule object

filename
string
required

Name of the uploaded segmentation rule file

Maximum string length: 255
name
string
required

Name of the segmentation rule

Maximum string length: 255
createdBy
object
dateCreated
string<date-time>
read-only

Date and time when the segmentation rule was created

id
string
read-only

Internal numeric identifier, encoded as a string

language
string

Language code derived from the locale

locale
string

Locale code of the segmentation rule; normalized when read

primary
boolean

When true, this rule is the primary segmentation rule for its locale in the organization

uid
string
read-only

Unique identifier used in API paths