Skip to main content
POST
Create a view

Authorizations

Authorization
string
header
required

API key for authentication

Headers

Idempotency-Key
string

A unique key, such as a UUID, that makes retrying this request safe: a retry with the same key and body returns the original response without running the operation again. Keys are kept for 24 hours after the request completes.

Maximum string length: 255
Example:

"8e03978e-40d5-43e8-bc93-6894a57f9324"

Body

application/json

A view of a group. Its settings depend on its type: sort for table views, groupBy and columns for kanban views.

groupId
string
required

The group the view belongs to.

Required string length: 40
Example:

"grp_92ab3f1c-0386-434d-82d7-a91eb6badd71"

name
string
required

The name of the view, as shown in the app.

Required string length: 1 - 500
Example:

"Hot leads"

entityType
string
required

The entity type of the view: person, company, or the name of an object type of the group.

Maximum string length: 500
Example:

"person"

type
enum<string>
required
Available options:
table
filter
object | null

The filter of the view, null or absent for no filter. Unlike the search endpoints, the filter is a list of conditions.

visibleFields
string[]

The fields shown by the view, in display order, with the same keys as the filter, at most 100. The name column is always shown and is never listed.

Maximum array length: 100
Maximum string length: 1000
Example:
position
object

Where the view goes among the views of its group: { "after": <viewId> }, { "before": <viewId> }, { "after": null } for the first position or { "before": null } for the last one. Last by default.

Example:
sort
object

The sort of the view. When the sorted field no longer exists, the default sort of the entity type is returned.

Response

The created view.

data
object
required

A view of a group. Its settings depend on its type: sort for table views, groupBy and columns for kanban views.

Example:
deprecations
string[]
Example: