/segments/upload
Allows you to upload a list of segments from a DMP into Adnuntius.
POST
A list of segments can uploaded using a POST
request.
POST https://api.adnuntius.com/api/v1/segments/upload?context=<context>
[
{
"segmentId": "qwerty12345",
"name": "Sports",
"description": "Interested in sports",
"dataSource": "ADNUNTIUS",
"state": "ACTIVE"
},
{
"segmentId": "zxcvbn98765",
"name": "Movies",
"description": "Interested in movies",
"dataSource": "ADNUNTIUS",
"team": "my_team_id",
"state": "ACTIVE"
},
{
"segmentId": "355hd46dh",
"name": "Food",
"description": "Eats food",
"dataSource": "ADNUNTIUS",
"teams": ["team1_id", "team2_id"],
"state": "ACTIVE"
},
{
"segmentId": "355hd46dh",
"name": "Food",
"description": "Eats food",
"dataSource": "ADNUNTIUS",
"teams": ["team1_id", "team2_id"],
"state": "ACTIVE",
"ttlNumber": 100,
"ttlSpec": true,
"timeToLiveType": "FIXED_DURATION",
"ttlUnit": "Days"
}
]
Last updated