SnozeDevelopers
API referenceCalendar

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.

POST
/v1/workspaces/{workspaceId}/calendar/views

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

Request Body

application/json
  1. body
id?|null
name*string
filters*
isDefault?boolean|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/calendar/views' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "filters": {}}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "name": "string",    "filters": {},    "isDefault": true,    "createdAt": "string",    "updatedAt": "string"  }}