Creates a custom parameter targeting rule for the specified site.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targeting/custom/create.do
Creates a custom parameter targeting rule for the specified site. Supports three custom types: EXPRESSION (a boolean expression like ($p1==1 || $p1=='a') && $p2>=12), VALUE (exact match on a parameter), and SUBSTRING (partial match). When customType is VALUE or SUBSTRING, the operation and parameter fields specify how to compare. Returns the created targeting rule on success. Requires CUSTOM targeting permission.
Path Params
siteIdintegerrequired
Unique numeric ID of the site
3001
Form Params
rulestringrequired
Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist
INCLUDE
customValuestringrequired
Custom targeting value or expression (e.g. ($p1==1 || $p1=='a') && $p2>=12)
premium_user
customTypestring
Custom target type — EXPRESSION, VALUE, or SUBSTRING (optional)
VALUE
operationstring
Comparison operation — EQUALS, NOT_EQUALS, CONTAINS, or NOT_CONTAINS (optional, used with VALUE/SUBSTRING)
EQUALS
parameterstring
Parameter name for the operation comparison (optional, used with VALUE/SUBSTRING)