Skip to content

ADAS01 - Upsert publisher segments

Request

Bodyapplication/json
segmentsArray of objects, [ 0 .. 100 ] itemsrequired

A list of segments to upsert (maximum 100)

curl -i -X POST \
  https://retailmedia.mirakl.net/api/v1/audiences/segments \
  -H 'Content-Type: application/json' \
  -d '{
    "segments": [
      {
        "description": "Trend-conscious individuals who prioritize style and the latest fashion trends in their clothing choices.",
        "id": "FASHIONISTA_01",
        "name": "FASHIONISTA"
      },
      {
        "category": "Sports and Outdoor Equipment",
        "id": "OUTDOOR_ENTHUSIAST_02",
        "name": "Outdoor Enthusiast"
      },
      {
        "category": "Electronics and Gadgets",
        "description": "Individuals who are enthusiastic about technology and frequently purchase the latest electronic devices and gadgets.",
        "id": "TECH_SAVVY_03",
        "name": "Tech Savvy"
      },
      {
        "id": "HOME_DECORATOR_04",
        "name": "Home Decorator"
      }
    ]
  }'

Responses

OK

Bodyapplication/json
failureArray of objectsrequired

Contains a list of segments that failed validation, along with the cause of the failure

successArray of objectsrequired

Contains a list of segments that were successfully upserted

Response
{ "failure": [ { … } ], "success": [ { … } ] }