Docs
Seed Views
POST /views/seed
POST
/views/seedSeeds a table's starter views once: creates the given shared views only when the event or organization has no shared view yet for entityId and tableId, and otherwise creates nothing. Concurrent first loads seed one set. Every view takes entityId and tableId from the request, and isPrivate is refused. Returns the table's views as Views_GetViews does. Needs an event or organization token (a user token alone is refused with 400), with access to the event or the organization.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| entityId | uuid | Optional | |
| tableId | string | Optional | |
| views | CreateViewRequest[] | Optional |
CreateViewRequest
| Field | Type | Description |
|---|---|---|
| name | string| null | |
| index | integer | |
| entityId | uuid | |
| tableId | string| null | |
| isDefault | boolean | |
| configuration | string| null | |
| configurationVersion | integer | |
| isPrivate | boolean |
Response
Type: GetViewsResponse[]
GetViewsResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| isDefault | boolean | |
| name | string| null | |
| index | integer | |
| entityId | uuid | |
| tableId | string| null | |
| configuration | string| null | |
| configurationVersion | integer | |
| isPrivate | boolean |