Create a custom view

View as Markdown

Creates a custom table view for the project+object. Validates field keys, filter operands, and sort/filter paths against the definition (422 on invalid view body). Requires data-view:manage on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
objectIdstringRequired

Request

This endpoint expects an object.
namestringRequired1-200 characters
fieldslist of objectsOptional
filterslist of objectsOptional
sortslist of objectsOptional
filterLogicstringOptional>=1 character

Response

The created view.
viewobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error