Delete a button from a database
Removes the button and returns the deleted definition; the action it pointed at is left alone. Requires the `databases:write` permission and responds with not-found for an unknown button. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
workspaceId*stringdatabaseId*stringSuccess
application/json- response
data*curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/databases/string/buttons/string'{ "data": { "id": "string", "workspaceId": "string", "databaseId": "string", "label": "string", "icon": "string", "variant": "primary", "actionId": "string", "bindings": [ { "inputPath": "string", "source": "record_id" } ], "confirmation": { "title": "string", "body": "string", "confirmLabel": "string" }, "placements": [ "record" ], "visibleWhen": "string", "enabled": true, "order": 0, "createdAt": "string", "updatedAt": "string" }}Update a button on a database
Changes the button's label, icon, variant, action, bindings, placements, confirmation, visibility formula, enabled flag or order; omitted properties keep their current values. Requires the `databases:write` permission and responds with not-found for an unknown button. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.
List a database's validation rules
Returns the rules that run on every record write, in evaluation order, each with its condition formula, message, severity and the field its message is anchored to. Requires the `databases:read` permission.