Replace one view only at the client source revision (#731, DESIGN §2). The file hash check also rejects a concurrent Files write after the read.
const url = 'https://example.com/api/v1/notes/tasks/views/example';const options = { method: 'PUT', headers: { 'If-Match': 'example', 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 PUT \ --url https://example.com/api/v1/notes/tasks/views/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'If-Match: example' \ --data '{ "view": {} }'Route: /api/v1/notes/tasks/views/{id}. Inputs: id, If-Match. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Strong source ETag returned by the saved view read
Request Bodyrequired
Section titled “Request Bodyrequired”A complete Obsidian Bases view object submitted for create or update (#430).
object
One Obsidian Bases view object. The route assigns or checks its stable ID.
object
Examplegenerated
{ "view": {}}Responses
Section titled “Responses”One stable saved view and its full Bases configuration (#430).
object
Strong ETag of the complete source file. Required for replacement (#731).
Complete view configuration, including Obsidian and calternal extension fields.
object
Examplegenerated
{ "base_filters": "example", "etag": "example", "id": "example", "view": {}}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}