Skip to main content
POST
/
networks
/
trafficcontrols
Create Traffic Control
curl --request POST \
  --url https://api.eflow.team/v1/networks/trafficcontrols \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "status": "active",
  "control_type": "block",
  "is_apply_all_offers": true,
  "comparison_method": "contains",
  "variables": []
}
'
{
  "network_traffic_control_id": 123,
  "network_id": 123,
  "status": "active",
  "control_type": "<string>",
  "is_apply_all_offers": true,
  "comparison_method": "<string>",
  "variables": [
    {}
  ],
  "date_valid_from": "<string>",
  "date_valid_to": "<string>",
  "time_created": 123,
  "time_saved": 123
}

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
status
enum<string>
required

Traffic control status.

Available options:
active,
inactive
control_type
string
required

The type of traffic control (e.g. block, redirect).

is_apply_all_offers
boolean

Whether this control applies to all offers.

comparison_method
string

How variables are compared (e.g. contains, equals, regex).

variables
object[]

Variables and values used for traffic matching.

date_valid_from
string

Start date for the control's validity period (YYYY-MM-DD).

date_valid_to
string

End date for the control's validity period (YYYY-MM-DD).

Response

200 - application/json

OK

network_traffic_control_id
integer

Unique traffic control ID.

network_id
integer

Network ID.

status
enum<string>

Traffic control status.

Available options:
active,
inactive
control_type
string

The type of traffic control.

is_apply_all_offers
boolean

Whether this control applies to all offers.

comparison_method
string

How variables are compared.

variables
object[]

Variables and values used for traffic matching.

date_valid_from
string

Start date for the control's validity period.

date_valid_to
string

End date for the control's validity period.

time_created
integer

Unix timestamp of creation.

time_saved
integer

Unix timestamp of last update.