Update banner click capping
Updates an existing click capping rule for a banner, modifying its amount, period, period type, distribution, or subject.
https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/click-capping/update.do Updates an existing click capping rule for a banner, modifying its amount, period, period type, distribution, or subject. Fields not sent keep their value. It never creates a rule: when the banner has no rule of this type for the subject the answer is 404 naming it - create one with the matching set.do. If the capping was previously disabled, this call re-enables it. Rules are keyed by subject: without subject the banner's only rule of this type is updated (keeping its subject), otherwise the USER_COOKIE rule. Requires UPDATE permission and the MANAGE_CAPPING_AND_LIMITATIONS privilege; using IP or LES_IP subjects requires additional permissions.
Path Params
bannerId integer required
Numeric ID of the banner to update click capping for
42 Form Params
amount integer
Maximum number of clicks allowed within the specified period. Optional; if omitted the existing amount is preserved.
1000 period integer
Length of the capping time window, expressed in units defined by periodType. Omitted keeps the current period
24 periodType string
Unit of the capping period. Allowed values: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR. Omitted keeps the current unit
HOUR evenDistribution boolean
When true, clicks are distributed evenly across the period instead of being counted as fast as possible
true subject string
Entity used to identify unique users for capping; selects the rule to update. If omitted and the banner has exactly one rule of this type, that rule is updated and keeps its subject; otherwise USER_COOKIE. Allowed values: USER_COOKIE, USER_SERVER_SIDE, USER_MIXED, IP, LES_IP
USER_COOKIE Responses
200
Click capping updated successfully
400
Invalid request parameters
401
Authentication error
403
Not enough permissions
404
Banner not found, or it has no click capping rule for the subject