post-revision.http 475 B

1234567891011121314151617181920212223
  1. POST {{triliumHost}}/etapi/create-note
  2. Authorization: {{authToken}}
  3. Content-Type: application/json
  4. {
  5. "parentNoteId": "root",
  6. "title": "Hello",
  7. "type": "code",
  8. "mime": "text/plain",
  9. "content": "Hi there!"
  10. }
  11. > {% client.global.set("createdNoteId", response.body.note.noteId); %}
  12. ###
  13. POST {{triliumHost}}/etapi/notes/{{createdNoteId}}/revision
  14. Authorization: {{authToken}}
  15. Content-Type: text/plain
  16. Changed content
  17. > {% client.assert(response.status === 204); %}