Creates a time range targeting rule for the specified site.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targeting/time-range/create.do
Creates a time range targeting rule for the specified site. The rule matches ad requests occurring within the specified time window (24-hour format). If clientLocalTime is true, the time check uses the visitor's local timezone; otherwise UTC is used. Returns the created targeting rule on success. Requires TIME_RANGE 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
timeFromstringrequired
Start time in 24-hour format hh:MM (e.g. 09:00)
09:00
timeTostringrequired
End time in 24-hour format hh:MM (e.g. 18:30)
18:30
clientLocalTimeboolean
If true, check time in visitor's local timezone; otherwise use UTC (defaults to false)