"Replay key reused for different input; the rule is malformed; no such catalog item, saved segment or password, or the item is not sold as a subscription; the business has no connected public channel; the segment filter is invalid; the sign-in page is itself closed or there is no password to sign in with; the business is at its limit of rules"
"Owner-only site:write. One rule per target: path (a mask of the path the page is served at, such as /pricing.html, /lessons/ or /lessons/*, * only last; /pricing does not match pricing.html) plus an optional block (a name of letters, digits and hyphens; the block is the bundle file __telegafirst/blocks/{block}.html and the page holds only a data-tgf-block placeholder). Setting a target again updates its rule. any_of (1 to 10 conditions) is who gets in, and one of the conditions is enough: a product (catalog_id, a 0-price product counts), a live subscription ({\"kind\":\"subscription\"}: any paid one, a trial and a 0-price subscription do not count; with catalog_id: to that subscription item, a trial and a 0-price one count, and a cancelled one counts until its paid period ends), the business public channel, any signed-in customer of this business ({\"kind\":\"signed_in\"}), a saved segment (saved_segment_id), an inline segment filter, or a password by its name ({\"kind\":\"password\",\"password\":\"acme\"}, made with PUT /api/v1/tools/site/passwords). Where several masks match a path, the most specific mask decides and overrides the general one (/kp/acme/* over /kp/*); a block follows the most specific mask of its page. The platform keeps passwords. Never put a password in HTML or JS. The default sign-in page is ready; an own page is login_path (open: outside every closed mask) plus /widget/gate.v1.js. Data for the admitted is a JSON file under the closed mask; a third-party API key is a site secret. mode is hide (default, the block is absent) or lock (a stub with the condition); without a block the whole page is closed and a visitor who fails goes to sign-in. is_active false pauses the rule. Effective at once, no republish, and a republish keeps it; unprojected_hosts above 0 counts hosts whose edge catches up on the next reconciliation. At most 200 rules per business, paused ones included. Idempotency-Key is optional for PUT."
operationId
"setSiteAccessRule"
summary
"Open a page or a block of a page only to part of the audience"