Create one stable-ID view in its own readable file under Views.
POST
/api/v1/notes/tasks/views
const url = 'https://example.com/api/v1/notes/tasks/views';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"view":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/notes/tasks/views \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "view": {} }'Route: /api/v1/notes/tasks/views. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
A complete Obsidian Bases view object submitted for create or update (#430).
object
view
required
One Obsidian Bases view object. The route assigns or checks its stable ID.
object
Examplegenerated
{ "view": {}}Responses
Section titled “Responses”Media typeapplication/json
One stable saved view and its full Bases configuration (#430).
object
base_filters
etag
required
Strong ETag of the complete source file. Required for replacement (#731).
string
id
required
string
view
required
Complete view configuration, including Obsidian and calternal extension fields.
object
Examplegenerated
{ "base_filters": "example", "etag": "example", "id": "example", "view": {}}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}