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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string
databaseId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/databases/string/publish'
Example Response
{  "data": {    "databaseId": "string"  }}