Docs

Create View

POST /views

POST/views

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Creates a new saved view for a table. The entityId scopes the view to the relevant entity (e.g. an event or collaborator). The configuration field holds the serialized layout state as a JSON string.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay name for the view.
indexintRequiredSort position among views for this table.
entityIdGuidRequiredThe entity this view belongs to (e.g. `{{eventId}}`).
tableIdstringRequiredIdentifier of the table this view applies to (e.g. `"tasks"`, `"activities"`).
isDefaultboolRequiredWhether this should be the default view for the table. Setting `true` will unset any existing default.
configurationstringRequiredSerialized view configuration as a JSON string. Pass `"{}"` for an empty configuration.

Response

Returns 201 Created with an empty body on success.