brampower 1 Posted July 23, 2025 Posted July 23, 2025 Hi, I am working on a script that will take Episode ID and PlaybackPositionTicks as a parameter, which will then send this data to other users (meaning I can keep the playback progress in sync between users). It appears that I should use the following to POST: /Users/{UserId}/Items/{ItemId}/UserData However, this 404s for me. Is this still an active endpoint? If not, is there any other way to set PlaybackPositionTicks for a specific media ID through the API? Thank you! PlaybackPositionTicks/Users/{UserId}/Items/{ItemId}/User Data
Luke 42077 Posted July 25, 2025 Posted July 25, 2025 Hi, yes this is still active. Can you please provide a specific example? How to Report a Problem Thanks !
Solution brampower 1 Posted July 25, 2025 Author Solution Posted July 25, 2025 (edited) I will admit that I have no idea what changed, but after tinkering with it a little while longer today, the following appears to work: headers = { "X-Emby-Token": API_KEY, "Content-Type": "application/json" } user_data = { "PlaybackPositionTicks": playback_ticks } for user_id in USER_IDS: url = f"{SERVER_URL}/Users/{user_id}/Items/{item_id}/UserData" try: response = requests.post(url, headers=headers, json=user_data) except Exception as e: any_failures = True log(f"[ERROR] Exception for user {user_id}: {e}") Sorry to waste your time, all looks good now and it's working correctly! Edited July 25, 2025 by brampower 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now