SnozeDevelopers
API referenceDatabases

Delete a validation rule

Removes the rule so it no longer runs on record writes, and returns the deleted definition. Requires the `databases:write` permission and responds with not-found for an unknown rule. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

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

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/databases/string/validation-rules/string"
{  "data": {    "id": "string",    "workspaceId": "string",    "databaseId": "string",    "label": "string",    "condition": "string",    "message": "string",    "severity": "block",    "fieldKey": "string",    "enabled": true,    "order": 0,    "createdAt": "string",    "updatedAt": "string"  }}