The Movie Database qoldaýy

Hi I am seeing a strange issue with the remove watch list webservice. Below are the details of my request

URL: https://api.themoviedb.org/3/account/**/movie_watchlist?api_key=***&session_id=***

Body:

{"movie_id":"9487","movie_watchlist":true}

I have used post to hit the service and it responds with 201 created. But it is not removing from the list. Is there anything I am doing wrong here

4 jaýap (1 ishinen 1 betinde)

Jump to last post

THis is the response I get

{ "status_code": 12, "status_message": "The item/record was updated successfully." }

ANy Update please

its important

Hi @manohar1991,

You're not removing your item from the watchlist properly. That's not how you do it. Take a look at the account watchlist method. To add and remove an item, you pass a boolean in the body.

URL: https://api.themoviedb.org/3/account/###/watchlist?api_key=***&session_id=***

Add to watchlist body:

{"media_type": "movie", "media_id": 284054, "watchlist": true}

Remove from watchlist body:

{"media_type": "movie", "media_id": 284054, "watchlist": false}

Make sure to pass the Content-Type header. Here's a cURL example:

curl -H "Accept: application/json" -H "Content-Type: application/json" \
-d "{"media_type": "movie", "media_id": 284054, "watchlist": true}" \
"https://api.themoviedb.org/3/account/###/watchlist?api_key=***&session_id=***"

Thank you Travis. It worked now. I was following some other post and used the above.

Thank you again

Fılmdi nemese kórsetimdi taba almadyńyz ba? Ony jasaý úshin kirińiz.

Ǵalamdyq

s kezelimdi izdeý jolaǵyna aýystyrý
p profaıl mázirin ashý
esc ashyq terezeni jabý
? perneler tirkesimi terezesin ashý

Tasyǵyshtar betterinde

b artqa oralý (nemese qoldanylatyn bolsa, tektikke)
e óńdeý betine ótý

Telemaýsym betterinde

(oń jaq kórsetki) kelesi telemaýsymǵa ótý
(sol jaq kórsetki) aldyńǵy telemaýsymǵa ótý

Epizod betterinde

(oń jaq kórsetki) kelesi epızodqa ótý
(sol jaq kórsetki) aldyńǵy epızodqa ótý

Barlyq keskin betterinde

a keskin ústeý terezesin ashý

Barlyq óńdeý betterinde

t tárjime tańdaǵyshyn ashý
ctrl+ s pishindi jiberý

Talqylaý betterinde

n jańa talqylaýdy jasaý
w qaralǵan kúıin aýystyrý
p jalpy/jekeni aýystyrý
c jabý/ashýdy aýystyrý
a áreketterdi ashý
r talqylaýǵa jaýap berý
l sońǵy jaýapqa ótý
ctrl+ enter habaryńyzdy jiberý
(oń jaq kórsetki) kelesi betke
(sol jaq kórsetki) aldyńǵy betke

Parametrler

Want to rate or add this item to a list?

Kirý