Skip to main content
PATCH
Update 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"

Path Parameters

viewId
string
required

The ID of the view to update.

Required string length: 40

Body

application/json

The settings of the view to change. The others are kept. A view never changes group, entity type or type.

name
string

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

Required string length: 1 - 500
Example:

"Hot leads"

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:
sort
object

Table views only.

groupBy
string

Kanban views only. Without columns, the columns are kept when the field is the current one, and reset to the options of the new field otherwise, with the "No value" column hidden if it was.

Maximum string length: 1000
Example:

"customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Stage"

columns
object[]

Kanban views only. The columns, in display order: every option of the groupBy field once, plus null for the "No value" column.

Maximum array length: 1001
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.

Example:

Response

The updated 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: