This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates or replaces a post's paywall.
A post has at most 1 post paywall, identified by postId and postFqdn.
If the post already has a post paywall, it's replaced. Otherwise, a post paywall is created.
Specify either paywallTemplateId or richContent:
paywallTemplateId: The post uses a paywall template from the site's template library.richContent: The post has paywall content of its own.Setting one clears the other, so replacing a post's own content with a template reference discards that content.
Set the paywall on the draft post, with postFqdn set to wix.blog.v4.draft_post.
When the post is published, the draft post's paywall is copied to the published post.
If the draft post has no paywall, the published post's paywall is deleted.
Paywalls set directly on a published post are overwritten the next time the post is published or updated.
revision isn't checked. An upsert replaces the post's current paywall,
including changes made by others since you retrieved it.
To remove a post's paywall, call Delete Post Paywall.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.