put-note-content-binary.http 524 B

12345678910111213141516171819202122232425
  1. POST {{triliumHost}}/etapi/create-note
  2. Authorization: {{authToken}}
  3. Content-Type: application/json
  4. {
  5. "parentNoteId": "root",
  6. "title": "Hello",
  7. "type": "image",
  8. "mime": "image/png",
  9. "content": ""
  10. }
  11. > {% client.global.set("createdNoteId", response.body.note.noteId); %}
  12. ###
  13. PUT {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
  14. Authorization: {{authToken}}
  15. Content-Type: application/octet-stream
  16. Content-Transfer-Encoding: binary
  17. < ../images/icon-color.png
  18. > {% client.assert(response.status === 204); %}