Skip to main content
PATCH
/
v1
/
program
/
restrictions
curl -X PATCH "https://api.affonso.io/v1/program/restrictions" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "brand_bidding": false,
    "incent": false,
    "additional_restrictions": "No adult content"
  }'
{
  "success": true,
  "data": {
    "websites": true,
    "social_marketing": true,
    "organic_social": true,
    "email_marketing": true,
    "mobile_traffic": true,
    "search_engine_marketing": false,
    "organic_search": true,
    "rebrokering": false,
    "incent": false,
    "brand_bidding": false,
    "additional_restrictions": "No adult content"
  }
}
Update your program’s traffic source restrictions. All fields are optional. If no restrictions exist yet, they will be created.

Body Parameters

websites
boolean
Allow website traffic.
social_marketing
boolean
Allow paid social marketing.
organic_social
boolean
Allow organic social traffic.
email_marketing
boolean
Allow email marketing.
mobile_traffic
boolean
Allow mobile traffic.
search_engine_marketing
boolean
Allow paid search (SEM).
Allow organic search traffic.
rebrokering
boolean
Allow rebrokering.
incent
boolean
Allow incentivized traffic.
brand_bidding
boolean
Allow brand bidding.
additional_restrictions
string | null
Free-text additional restrictions. Set to null to clear.

Response

Returns the updated restrictions object. Same structure as the Get Restrictions response.
curl -X PATCH "https://api.affonso.io/v1/program/restrictions" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "brand_bidding": false,
    "incent": false,
    "additional_restrictions": "No adult content"
  }'
{
  "success": true,
  "data": {
    "websites": true,
    "social_marketing": true,
    "organic_social": true,
    "email_marketing": true,
    "mobile_traffic": true,
    "search_engine_marketing": false,
    "organic_search": true,
    "rebrokering": false,
    "incent": false,
    "brand_bidding": false,
    "additional_restrictions": "No adult content"
  }
}