mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-10-27 11:18:14 +01:00
This patch is a minor extension to the update progress and batch update progress API and allows you to specify `finishedAt` and `startedAt` when updating a progress. If not specified, both values are still automatically set to the current time. If just `finishedAt` is specified, `startedAt` is set to the same value. Example API request: ``` ❯ curl -i -X PATCH \ 'http://127.0.0.1:3333/api/me/progress/li_ywupqxw5d22adcadpa' \ -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJyb290IiwidXNlcm5hbWUiOiJyb290IiwiaWF0IjoxNjY4OTYxNjAxfQ._NbilCoFy_hfoqy7uvbV4E_0X6qgLYapQ_MoRptP0oI' \ -H 'Content-Type: application/json' \ --data-raw '{"isFinished":true, "finishedAt": 1668556852000, "startedAt": 1668056852000}' ``` |
||
|---|---|---|
| .. | ||
| entities | ||
| files | ||
| mediaTypes | ||
| metadata | ||
| settings | ||
| user | ||
| Backup.js | ||
| Collection.js | ||
| DailyLog.js | ||
| DeviceInfo.js | ||
| Feed.js | ||
| FeedEpisode.js | ||
| FeedMeta.js | ||
| Folder.js | ||
| Library.js | ||
| LibraryItem.js | ||
| Notification.js | ||
| PlaybackSession.js | ||
| PodcastEpisodeDownload.js | ||
| Stream.js | ||
| Task.js | ||