Save a calendar view
Creates or, when a view of the same name already exists for this user and workspace, updates a saved filter preset and optionally marks it as the default. Requires `workspace:read`, and names must be 1 to 120 characters or the request is rejected as a validation error. 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*stringapplication/json- body
id?|nullname*stringfilters*isDefault?boolean|nullSuccess
application/json- response
data*curl -X POST 'https://api.snoze.dev/v1/workspaces/string/calendar/views' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "filters": {}}'{ "data": { "id": "string", "workspaceId": "string", "name": "string", "filters": {}, "isDefault": true, "createdAt": "string", "updatedAt": "string" }}List the caller's saved calendar views
Returns the calendar filter presets the calling user saved in this workspace, ordered by name. Requires `workspace:read`. Saved views are per user, so one member never sees another's.
Delete a saved calendar view
Removes one of the calling user's saved filter presets; a view belonging to another user is never matched. Requires `workspace:read` and reports an unknown view as a validation error. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.