The Movie Database Support

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 replies (on page 1 of 1)

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

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Prijava