SnozeDevelopers
API referenceDatabase publish

Withdraw a standalone view from the web

Disables the view's public page while retaining its slug, and records the change on the workspace event ledger; a view that was never published is left untouched. Requires a signed-in workspace session with full (`views:write`) access to the view, and ownership as well when the view is personal. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

DELETE
/v1/workspaces/{workspaceId}/views/{viewId}/publish
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
viewId*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/views/string/publish"
{  "data": {    "viewId": "string"  }}