Create View
POST /views
/viewsSaves a new view of a table's layout. entityId is the entity the view belongs to and tableId names the table; neither can be changed later. Set isPrivate to keep the view visible to the caller only, which needs a signed-in user (an API key is rejected with 400). Setting isDefault clears the default flag on the other views in the same shared or private set. Index is the 1-based position in that set. configurationVersion defaults to 1; with 2 the configuration is checked as a schedule view, and a shared view may not hold the Me calendar. With a user token alone the view is an account view owned by the caller: entityId must be the caller's user id, and API keys are refused. The response has no body. Needs access to the event, or to the organization for an organization view; a shared view also needs Views.ManageShared at the organization, read from the event's owning organization for an event view.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| index | integer | Optional | |
| entityId | uuid | Optional | |
| tableId | string | Optional | |
| isDefault | boolean | Optional | |
| configuration | string | Optional | |
| configurationVersion | integer | Optional | |
| isPrivate | boolean | Optional |