Join us for our Developer Platform Hackathon, May 16-17. Apply now →
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.views.update({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab",
name: "Updated view name"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"type": "<string>",
"database_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Update a view’s name, filter, sorts, or configuration.
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.views.update({
view_id: "a3f1b2c4-5678-4def-abcd-1234567890ab",
name: "Updated view name"
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"type": "<string>",
"database_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}For a successful request, the response is the updated View object. All body parameters are optional. Only the provided fields are updated; omitted fields are left unchanged. To clear a field, passDocumentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
null.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11 ID of a Notion view.
New name for the view.
Filter to apply to the view. Uses the same format as the data source query filter. Pass null to clear the filter.
Property sorts to apply to the view. Only property-based sorts are supported. Pass null to clear the sorts.
100Show child attributes
Quick filters for the view's filter bar. Keys are property names or IDs. Set a key to a filter condition to add/update that quick filter. Set a key to null to remove it. Pass null for the entire field to clear all quick filters. Unmentioned quick filters are preserved.
Show child attributes
View presentation configuration. The type field must match the view type. Individual nullable fields within the configuration can be set to null to clear them.
Show child attributes
The object type name.
"view"The ID of the view.
The parent database of the view.
Show child attributes
The view type.
table, board, list, calendar, timeline, gallery, form, chart, map, dashboard