Skip to content

ADAS06 - Import segment population from previously uploaded file.

Request

Description

This is a full replace import: the segment will contain only the members from the uploaded file. If the resulting deletions (existing members missing from the upload) exceed the configured deletion threshold (currently set to 30% of existing members), the import is rejected unless you explicitly enable the force parameter to override this safeguard.

Bodyapplication/json
file_idstringrequired

A file identifier.

forceboolean

Force import even if deletion threshold is exceeded. If not set, the import will be rejected when the threshold is exceeded.

segment_idstringrequired

Segment identifier

Example:"FASHIONISTA_01"
curl -i -X POST \
  https://retailmedia.mirakl.net/api/v1/audiences/segments/population \
  -H 'Content-Type: application/json' \
  -d '{
    "file_id": "b139babd-3b73-479e-8b46-8afd23dc3805",
    "segment_id": "FASHIONISTA_01"
  }'

Responses

OK

Bodyapplication/json
tracking_idstringrequired

A unique identifier assigned to monitor the import completion.

Response
{ "tracking_id": "d249daed-5d95-69bg-0d68-0chf45fe5027" }