Plex.tv - Change Sync My Watch State and Ratings

This API request will allow a user to change their watch state and ratings syncing across the entire Plex platform. Each user will need to set this using their own Plex token.

URL

PUT https://plex.tv/api/v2/user/view_state_sync?consent={consent}&X-Plex-Token={plex_token}

Parameters

NameDescription
plex_tokenThe Plex user token.
consentThis value will need to be set to true to allow syncing watch state and ratings, or false to disable syncing.

Return Status

HTTP CodeDescription
200Success - The request was successful.
400Bad request. A mandatory parameter was missing.
401Unauthorized - The Plex token provided was not valid.

Response

No response is returned by the command. The status code will indicate whether the preference was set successfully.

Examples

curl -X PUT https://plex.tv/api/v2/user/view_state_sync?consent={consent}&X-Plex-Token={plex_token}
import requests
plex_url = https://plex.tv/api/v2/user/view_state_sync?consent={consent}&X-Plex-Token={plex_token}

response = requests.put(plex_url)

print(response.text)
$response = Invoke-RestMethod "https://plex.tv/api/v2/user/view_state_sync?consent={consent}&X-Plex-Token={plex_token}" -Method PUT

Write-Output $response
Subscribe
Display