Policies tools
All tool areas. Each tool acts within your access.
Policies
list_terms
List every version of the terms, newest first: the organization's, or a product's own. The newest of a product's own replaces the organization's for it; get_settings shows the policies.
Reads · Members of an organization · Needs settings:read
Input
productIdA product's own terms, which replace the organization's for it; leave out for the organization's
Output
termsterms[]terms[].idterms[].productIdThe product whose own terms these are; null: the organization's
terms[].versionterms[].bodyterms[].createdAt
publish_terms
Publish a new version of the terms guests accept at checkout: the organization's, or a product's own (which replace the organization's for that product). Versions are never edited: each change is a new version, holds placed from now on lock it, and orders keep the version their guest accepted. Undo removes the version until a guest has held seats under it. Returns a preview to confirm; a person confirms it, never an agent on its own.
Changes · Members of an organization · Needs policies:write
Input
productIdA product's own terms, which replace the organization's for it; leave out for the organization's
bodyThe full terms, as plain text (paragraphs separated by blank lines)
Output
idproductIdThe product whose own terms these are; null: the organization's
versionbodycreatedAt