Publish or withdraw the accessibility statement
set_statement_publishedUse this when the user wants the accessibility statement they have already written to go LIVE at its public URL, or wants to take it back down. WRITES to this website's Inclusify configuration, never to the site itself — the statement is hosted by Inclusify and the widget links to it. It does NOT write the statement: the shape, the sections and the limitations are filled in through the Inclusify panel, because a statement is a legal representation about the company's own conformance and the wording has to be theirs. If nothing has been written yet, this says so. Publishing is REFUSED, with an itemised list of what is missing, when the statement is incomplete — read that list to the user rather than reporting a failure. Calling this with published:true on a statement that is ALREADY published is not a no-op and is not a mistake — the public page serves the version captured at the last publish, so republishing is how edits made since reach it. BOTH DIRECTIONS REQUIRE CONFIRMATION: publishing makes a legal document about their conformance publicly readable and linked from every page carrying the widget, and withdrawing retracts a document an auditor or regulator may already have cited, after which the page returns 404. Call without "confirm" first, show the user the preview, and call again with the token once they agree. The account owner is emailed either way, with a link to undo it. Needs the STARTER plan, matching the panel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Leave this out on the first call to get a preview of exactly what would change, plus a confirmation token. Call again with the same arguments and that token to apply the change. The token lasts 10 minutes and works once. | |
| website | Yes | The website domain as registered in Inclusify, e.g. "example.com". | |
| published | Yes | true publishes the statement at its public URL and links it from the widget; false withdraws it, after which the page returns 404. |