mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
26 lines
491 B
Plaintext
26 lines
491 B
Plaintext
![]() |
POST {{triliumHost}}/etapi/create-note
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{
|
||
|
"parentNoteId": "root",
|
||
|
"title": "Hello",
|
||
|
"type": "code",
|
||
|
"mime": "text/plain",
|
||
|
"content": "Hi there!"
|
||
|
}
|
||
|
|
||
|
> {% client.global.set("createdNoteId", response.body.note.noteId); %}
|
||
|
|
||
|
###
|
||
|
|
||
|
PUT {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
|
||
|
Content-Type: text/plain
|
||
|
|
||
|
Changed content
|
||
|
|
||
|
###
|
||
|
|
||
|
GET {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
|
||
|
|
||
|
> {% client.assert(response.body === "Changed content"); %}
|