Skip to content

Build your personal knowledge base with Trilium Notes

Add another ETAPI method to the api spec file.

jph513d1c020ca9
diff --git a/src/etapi/etapi.openapi.yaml b/src/etapi/etapi.openapi.yaml
index a05f6b3b2f..82177d4289 100644
--- a/src/etapi/etapi.openapi.yaml
+++ b/src/etapi/etapi.openapi.yaml
@@ -245,6 +245,19 @@ paths:
text/html:
schema:
type: string
+ put:
+ description: Updates note content idenfied by its ID
+ operationId: putNoteContentById
+ requestBody:
+ description: html content of note
+ required: true
+ content:
+ text/plain:
+ schema:
+ type: string
+ responses:
+ '204':
+ description: note content updated
/notes/{noteId}/export:
parameters:
- name: noteId