Views

Update a view

PATCH
Updates a single view

Path parameters

viewIdstringRequired
ID of view to update

Request

This endpoint expects an object.
config
objectRequired
The configuration of a view. Filters, sorting, and search query.
name
stringOptional

Response

This endpoint returns an object
data
object
A view

Errors

PATCH
1curl -X PATCH https://api.x.flatfile.com/v1/views/us_vi_YOUR_ID \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "config": {
6 "sortField": "email",
7 "sortDirection": "asc",
8 "filter": "error",
9 "filterField": "email",
10 "q": "firstname like %John%"
11 },
12 "name": "My View"
13}'
1{
2 "data": {
3 "id": "us_vi_YOUR_ID",
4 "sheetId": "us_sh_YOUR_ID",
5 "name": "My View",
6 "config": {
7 "sortField": "email",
8 "sortDirection": "asc",
9 "filter": "error",
10 "filterField": "email",
11 "q": "firstname like %John%"
12 },
13 "createdBy": "us_usr_YOUR_ID"
14 }
15}