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
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

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"  }}