Views

Update a table view

Changed on

Changes a saved view. Send at least one field; each one replaces its value wholesale, so filters, columns and sorting are not merged into what is already stored. name, visibility and isCollaborative are owner-only (an agency admin may also change them on a shared view). On a collaborative view, anyone who can see it may change filters, columns and sorting.

patch/api/v1/table-views/{id}

Request

Path parameters

idstring uuid required

Table view ID

Example:3f1c9d2e-8a45-4c7b-9f01-2d6e5b4a7c31

Request body

namestring

New view name

filtersobject

Replaces the saved filter state

visibility'public' | 'team' | 'private'

Who can see the view — owner or agency admin only

isCollaborativeboolean

Whether viewers of a shared view may change it — owner or agency admin only

Example request

{
  "columns": {
    "visibility": {
      "firstName": true,
      "currentRate": false
    },
    "order": [
      "firstName",
      "lastName"
    ]
  },
  "sorting": [
    {
      "id": "lastName",
      "direction": "asc"
    }
  ]
}

Response

Table view updated

status'ok' required

Changes