Replace users from File Segment
Replaces all users in an existing file segment with a new list of users from a CSV file.
- This API drops all existing users from the custom segment and adds the new users provided in the
file_url. - Only the newly added users are counted towards the daily
file_segment_userlimit.
Authorizations
Basic Authentication using your Workspace ID (as username) and Data API Key (as password) from the MoEngage Dashboard.
Headers
Select the file content type.
text/csv, application/csv, application/vnd.ms-excel, text/plain, application/octet-stream, binary/octet-stream Set the database from which the data is available (MOE-DBNAME).
Body
Details of the segment to update and the file URL of users to replace with.
Schema for updating an existing file segment (add, remove, replace users).
Name of the custom segment. Must be unique for creation.
Name of the user attribute to use as an identifier (e.g., 'ID', 'email').
The data type of the attribute_name.
string, double A public, downloadable URL to a single-column CSV file.
Callback URL to receive the result of segment processing.
List of email IDs to receive segment processing response.