v1

latestOpenAPI 3.1.02026-07-2616636641.7 KB

Create Flight Segment Targeting Rule

Create a Flight to Segment targeting rule

post/v1/flight/{FlightId}/segmenttargeting

Path parameters

FlightIdinteger required

The flight the targeting rule applies to

Request body

SegmentIdinteger required

Id of the Segment

IsExcludeboolean

Whether targeting is to be excluded or included.

Response

200

Idinteger
FlightIdinteger
SegmentIdinteger
IsExcludeboolean

Example response

{
  "Id": 56789,
  "FlightId": 55555,
  "SegmentId": 123456,
  "Segment": {
    "Source": "audience",
    "Name": "best customers",
    "Reach": {
      "all_time": 3187463,
      "28d": 387434
    },
    "Description": "top 1% spenders in the last 30 days.",
    "Category": "CRM"
  }
}