The Movie Database Support

With the request below I delete the tv show from watchlist but when I get the watchlist again I receive a watchlist with this item in it. Adding is working just fine instead of false I send True. I saw that you don't have delete from watchlist also on your site. What should I do ?

REQUEST:

POST http://api.themoviedb.org/3/account/1396/watchlist?api_key=MYAPIKEY&session_id=MYSESSIONID HTTP/1.1 Accept-Encoding: gzip Accept: application/json Content-Length: 57 Content-Type: application/json; charset=utf-8 Host: api.themoviedb.org Connection: Keep-Alive Pragma: no-cache Cookie: _ga=GA1.2.226218752.1443841333

{"media_type":"tv","media_id":"1396","watchlist":"False"}

RESPONSE:

HTTP/1.1 201 Created Access-Control-Allow-Origin: * Cache-Control: public, max-age=0 Content-Type: application/json;charset=utf-8 Date: Wed, 07 Oct 2015 01:50:39 GMT Server: openresty Status: 201 Created X-RateLimit-Limit: 40 X-RateLimit-Remaining: 39 X-RateLimit-Reset: 1444182649 Content-Length: 79 Connection: keep-alive

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

2 replies (on page 1 of 1)

Jump to last post

Hi Dzivo,

Make sure you're sending a boolean and not a string (might as well send an integer for the id while you're at it):

{"media_type":"tv","media_id":1396,"watchlist":false}

Cheers.

Thx that did the trick

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?

Logg inn