wiki_set_public_settings
Publish / unpublish a space to the PUBLIC INTERNET, or update its public-site config. This is the REAL publish switch — NOT the space isPublic flag (which is internal visibility). Pass only the fields you want to change: isEnabled (true = publish to the web, false = take offline), customSlug (public URL slug — validate first with wiki_check_public_slug), allowedEmojis (string[]), showReactions, showPageViews, showLastUpdated, showAuthor, viewMode ("space"|"helpcenter"), heroTitle, heroSubtitle. Provided fields are merged onto the current settings (read-modify-write), so unspecified fields are preserved. Minimal publish: { isEnabled: true, customSlug: "my-docs" }. ⚠️ HIGH-TRUST / OUTWARD-FACING: enabling makes the space readable by ANYONE on the internet — confirm with the user before publishing. Requires space ADMIN. API-key scope: wiki:spaces:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Multi-account auth only: name of the account from X-Dutify-Accounts to use for this call. Ignored in single-account mode (X-API-Key header). When multiple accounts are configured and this is omitted, the call fails with ACCOUNT_REQUIRED listing the available names. list_accounts never requires a selection. | |
| spaceKey | Yes | Uppercase space key | |
| viewMode | No | "space" (default) or "helpcenter" | |
| heroTitle | No | Help-center hero title (max 150 chars) | |
| isEnabled | No | Publish (true) / unpublish (false) the space to the public web | |
| workspace | No | Workspace identifier or exact name for this call. Overrides the configured workspace. For personal keys, discover candidates with list_workspaces and select explicitly. Does not change other calls or expand a workspace key's access. | |
| customSlug | No | Public URL slug (validate with wiki_check_public_slug first) | |
| showAuthor | No | ||
| heroSubtitle | No | Help-center hero subtitle (max 250 chars) | |
| allowedEmojis | No | Reaction emojis readers may use; omit = leave unchanged | |
| showPageViews | No | ||
| showReactions | No | ||
| showLastUpdated | No |