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.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/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" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}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.