Update a paywall of a product. Fields left out keep their saved values.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Overview
Update a paywall of a product. All fields are optional: fields left out keep their saved values, and the request is then validated with the same rules as the paywall form in the dashboard. The paywall must belong to the product in the path, otherwise the request returns 404.
Targeting
When target_all is false, countries_list, platforms_list and target_adblock are required. countries_list and platforms_list take Pelcro country and platform IDs, and the response returns the same IDs.
Sending countries_list or platforms_list replaces the saved list. Switching target_all to true clears the countries, platforms, tags and custom_javascript, sets target_adblock to true and removes the Referrer rule.
Referrer rule
Send referrer_operator and referrer_values to target readers by the site they arrive from, the same rule as the Referrer field in the dashboard.
| Operator | Matches readers who |
|---|---|
any | Removes the rule |
is_any_of | Came from one of these sites. The site must match exactly: google.com does not match www.google.com |
is_none_of | Did not come from any of these sites, including readers with no referrer |
contains | Came from an address that contains one of the values |
does_not_contain | Came from an address that contains none of the values |
matches_pattern | Came from an address that fits one of the patterns. * stands for any text |
is_empty | Have no referrer. Takes no values |
is_not_empty | Have a referrer. Takes no values |
referrer_values takes up to 50 values of up to 255 characters each, as a list or a comma-separated string. Each value is a domain (facebook.com), a full URL (https://www.facebook.com/) or an Android app (android-app://com.google.android.googlequicksearchbox/). Values cannot contain spaces, and * is only allowed with matches_pattern.
The rule is ignored when target_all is true.
An update without referrer_operator keeps the saved rule.
Rich text
HTML in the step titles and subtitles is sanitized. Only a and p tags are kept, with the href, target and rel attributes.
Image upload
register_image takes a file upload, not a URL. Send the request as multipart/form-data when uploading an image.

