For the complete documentation index, see llms.txt. This page is also available as Markdown.

Segments import

Use this feature to add or remove UserPoint from segments.

How-to

  1. Use the bulk import endpoints to create a document import with theUSER_SEGMENTdocument type and APPLICATION_X_NDJSON or TEXT_CSV mime type.

  2. Create an execution with your user segment commands formatted in ndjson or csv depending on the mime type you chose.

User segment command

Each line in the uploaded file can have the following properties:

field

type

description

operation

Enum (Mandatory)

Either UPDATE or DELETE

compartment_id

String (Optional)

The Compartment ID acting as a user identifier in correlation with the user account ID

user_account_id

String (Optional)

The User Account ID acting as a user identifier in correlation with the user account ID.

email_hash

String (Optional)

The Email Hash acting as a user identifier.

user_agent_id

String (Optional)

The User Agent ID acting as a user identifier.

segment_id

String (Optional)

The Id of the segment in which the User is inserted/deleted.

segment_technical_name

String (Optional)

The technical name of the segment in which the User is inserted/deleted.

expiration_duration

Integer (Optionnal)

The number of minutes before the user will be removed from the segment. 0 means that the User will never leave the segment

expiration_ts

Number (Optional)

The timestamp of the expiration date of the User in the segment. A value of 0 means that the user will never leave the segment

data_bag

Escaped JSON String (Optional)

The data bag associated with the user/segment relationship

Information about the fields to be provided:

  • At least one identifier must be provided: either compartment_id and user_account_id, email_hash, or user_agent_id.

  • Although expiration_duration and expiration_ts are individually optional, at least one of them must be provided.

  • Although segment_id and segment_technical_name are individually optional, at least one of them must be provided.

Example

Last updated

Was this helpful?