Save Last Location
PUT /api/v2/reader/{issue_id}/last-location
Saves the user's reading position. The payload structure varies by content type.
Request
EPUB:
curl -X PUT https://app.publica.la/api/v2/reader/440317/last-location \
-H "Authorization: Bearer {access_token}" \
-H "X-Farfalla-Tenant-Id: 42" \
-H "Content-Type: application/json" \
-d '{
"lastLocation": {
"chapterHref": "titlepage",
"cfi": "/4/2[cover-image]/2"
}
}'
PDF:
{
"lastLocation": {
"page": 3
}
}
Audiobook:
{
"lastLocation": {
"currentSeek": 0,
"currentTrack": 1
}
}
Response: 200 OK
{
"last_location": {
"page": 3
}
}