Paywall Template Object


A paywall template is reusable paywall content in a site's template library. Paywall content is shown in place of a post body to visitors who don't have access to the post.

Each template belongs to a single language and can be used by any number of posts. Which template a post uses is stored in the post's post paywall, not in the template.

Properties
createdDatestringRead-onlyformat date-time

Date and time the paywall template was created.


idstringRead-onlyformat GUID

Paywall template ID.


languagestringformat LANGUAGE_TAGimmutable

Template language, in IETF BCP 47 format. For example, en or en-US.

Can't be changed after the template is created.


revisionstringRead-onlyformat int64

Revision number, which increments by 1 each time the paywall template is updated. To prevent conflicting changes, the current revision must be passed when updating the paywall template.

Ignored when creating a paywall template.


richContentRichContent

Paywall content, in rich content format.

Contains a single LAYOUT node whose layoutData.banner.position is PAYWALL.

See the child properties of this field in the Ricos Document reference.


titlestringmaxLength 120

Template title, as shown to site owners when they choose a template.


updatedDatestringRead-onlyformat date-time

Date and time the paywall template was updated.

Did this help?