Docs

Seed Views

POST /views/seed

POST/views/seed

Seeds 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

FieldTypeRequiredDescription
entityIduuidOptional
tableIdstringOptional
viewsCreateViewRequest[]Optional

CreateViewRequest

FieldTypeDescription
namestring| null
indexinteger
entityIduuid
tableIdstring| null
isDefaultboolean
configurationstring| null
configurationVersioninteger
isPrivateboolean

Response

Type: GetViewsResponse[]

GetViewsResponse

FieldTypeDescription
iduuid
isDefaultboolean
namestring| null
indexinteger
entityIduuid
tableIdstring| null
configurationstring| null
configurationVersioninteger
isPrivateboolean