SnozeDevelopers
API referenceDatabase publish

Withdraw a database from the web

Disables the database's public page while retaining its slug, so republishing later reuses the same address; a database that was never published is left untouched. Requires a signed-in workspace session with full (`databases:write`) access to the database's item.

DELETE
/v1/workspaces/{workspaceId}/databases/{databaseId}/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
databaseId*string

Response Body

application/json

application/json

application/json

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