Create segmentation rule
Creates a new segmentation rule from the streamed file and the segRule JSON object passed in the segRule header. The segRule header carries a JSON object with the fields name, locale, primary and filename (the same SegmentationRuleDto shape returned by the GET action). Requires an internal role (ADMIN or PROJECT_MANAGER) with the setupServer access right.
Authorizations
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
512Body
streamed file
The body is of type object.
Response
Created
segmentation rule object
Name of the uploaded segmentation rule file
255Name of the segmentation rule
255Date and time when the segmentation rule was created
Internal numeric identifier, encoded as a string
Language code derived from the locale
Locale code of the segmentation rule; normalized when read
When true, this rule is the primary segmentation rule for its locale in the organization
Unique identifier used in API paths