# API: set viewOffset & CLI client prototype

**URL:** <https://forums.plex.tv/t/api-set-viewoffset-cli-client-prototype/287507>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [July 24, 2018, 10:27am UTC](https://forums.plex.tv/t/api-set-viewoffset-cli-client-prototype/287507 "2018-07-24T10:27:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aanok](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aanok/32/83080_2.png) [@Aanok](https://forums.plex.tv/u/Aanok)\
**Post date:** [July 24, 2018, 10:27am UTC](https://forums.plex.tv/t/api-set-viewoffset-cli-client-prototype/287507/1 "2018-07-24T10:27:39Z")

</div>

Hello! I am aware of the `/:/scrobble` and `/:/unscrobble` RESTful API endpoints to mark an item as fully viewed and unviewed (I will add them to the unofficial wiki later btw, as they are not listed there).

However, is there a way to set the `viewOffset` tag through an HTTP method? I can see the web client requesting GET’s through `/:/timeline` which include a `?time=xxx` parameter, but I believe those require having subscribed your client to a websocket interface? Apologies, but I am not very familiar with that mechanism.

I am trying to develop an essential CLI client and figuring out a way to flag items as partially viewed with the right seek time would be very nice. I’ve also been doing everything through stateless HTTP methods and would like to keep it as that.

Thank you.

---

<div class="post-metadata">

**Author:** ![Aanok](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aanok/32/83080_2.png) [@Aanok](https://forums.plex.tv/u/Aanok)\
**Post date:** [July 26, 2018, 9:59am UTC](https://forums.plex.tv/t/api-set-viewoffset-cli-client-prototype/287507/2 "2018-07-26T09:59:44Z")

</div>

Doubling as a bump, I’ll post my current, glass-fragile and ugly as sin client prototype: [https://github.com/Aanok/pmcli](https://github.com/Aanok/pmcli)

It works though, for the most part.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 24, 2018, 9:59am UTC](https://forums.plex.tv/t/api-set-viewoffset-cli-client-prototype/287507/3 "2018-10-24T09:59:45Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
