meta { name: "KOReader Sync Annotations - Per-Annotation SHA-256" type: http seq: 4 } post { url: {{base_url}}/api/v1/koreader/sync/bookmarks body: json({ "book_uuid": "{{book_uuid}}", "highlights": [ { "text": "Quote from book 1", "pos0": "/6/4[chap1ref]!/4/2/1:0", "pos1": "/6/4[chap1ref]!/4/2/1:50", "color": "#ffff00", "page": 10, "book_sha256": "{{book_sha256}}" }, { "text": "Quote from book 2 (different book)", "pos0": "/6/4[chap1ref]!/4/2/1:0", "pos1": "/6/4[chap1ref]!/4/2/1:50", "color": "#00ff00", "page": 15, "book_sha256": "{{another_book_sha256}}" } ] }) auth: { type: bearer bearer: {{koreader_device_token}} } } assert { response.status == 200 response.body.highlights_synced >= 0 }