#how to edit user settings Auto-Request Movies on Plex Watchlist from api ?

3 messages · Page 1 of 1 (latest)

mint pumice
#

Is there a way to edit this config from the user using the api ?

vague oracle
#

I couldn't find any way to do this via the api so here's what I'm posting in similar threads:

I got sick of the developers being totally ignorant of this really easy fix so I made an SQL script that you can run directly on the database.

As always, use at your own discretion, and ALWAYS take a backup.

INSERT INTO user_settings (userId, watchlistSyncMovies, watchlistSyncTv) 
SELECT u.id, 1, 1
FROM user u
LEFT JOIN user_settings us ON u.id = us.userId
WHERE us.userId IS NULL;

but this just sets the value for the auto-request setting to 1 and thats it.

Feel free to tweak at your own leisure, I just used ChatGPT to make it so no stress for me.

remote cliff
#

@mint pumice yes
I believe it's

curl -X 'POST' \
  'http://localhost:5055/api/v1/user/1/settings/main' \
  -H 'accept: application/json' \
  -H 'X-Api-Key: XXXXXXXXXX' \
  -H 'Content-Type: application/json' \
  -d '{
  watchlistSyncMovies: 1,
  watchlistSyncTv: 1
}'