ViewsUpdate View

Update View

Update an existing view by its name.

curl -X PUT "https://api.datafiniti.co/v4/views/John Doe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Doe",
  "fields": [
    "example_string"
  ]
}'
{
  "name": "John Doe",
  "fields": [
    "example_string"
  ],
  "created_at": "2024-12-25T10:00:00Z"
}
PUT
/views/{view_name}
PUT
Bearer Token
Bearer Tokenstring
Required

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>
path
view_namestring
Required

The name of the view to update

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Name for the view

fieldsarray

List of fields to include in the view

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Path Parameters

view_namestring
Required

The name of the view to update

Body

application/json
namestring

Name for the view

fieldsarray

List of fields to include in the view

Responses

namestring

View name

fieldsstring[]

Fields included in this view

created_atstring

Timestamp when the view was created

Nobody's perfect, and you may find a view you created isn't quite right for your project. Not to worry, you can always update your views.