The Movie Database Support

I'm currently using the API for an iPhone app I'm developing. An overview there Mooviz

I'm having a problem deleting a movie from favorites. I can add it but I can't remove it. I use the call below :

POST https://api.themoviedb.org/3/account/19479604/favorite?api_key=##API_KEY##&session_id=##SESSION_ID##

With the body:

{ "media_type" : "movie", "media_id" : 726209, "favorite": false }

I have the response below:

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

But the movie has not been removed from favorites ... Is there a bug in the API ? Thanks for your help.

5 replies (on page 1 of 1)

Jump to last post

@cyberchrix said:
Can't remove favorite
I'm currently using the API for an iPhone app I'm developing. An overview there Mooviz
I'm having a problem deleting a movie from favorites. I can add it but I can't remove it. I use the call below :
POST https://api.themoviedb.org/3/account/19479604/favorite?api_key=##API_KEY##&session_id=##SESSION_ID##
With the body { "media_type" : "movie", "media_id" : 726209, "favorite": false }
I have the response below { "success": true, "status_code": 12, "status_message": "The item/record was updated successfully." }
But the movie has not been removed from favorites ... Is there a bug in the API ? Thanks for your help.

I am not a TOKEN user.
But I think maybe you need to use v4 and not v3.
Remove Items
https://developer.themoviedb.org/v4/reference/list-remove-items

Thank you but this method concerns the lists that we have created and not the list of favorites...

Does anyone have an explanation please?

I don't know what causes this, but I found you can remove an item from favourites if you try it from the items unique overview page rather than any personal list or favourites page.

Hi guys,

I'm not having any trouble using this code (as an example) to remove items from my favourite list:

curl --location 'https://api.themoviedb.org/3/account/ACCOUNT_ID/favorite?session_id=###&api_key=###' \
--header 'Content-Type: application/json' \
--data '{ "media_type": "movie", "media_id": 16, "favorite": false }'

I am getting the correct response:

{
    "success": true,
    "status_code": 13,
    "status_message": "The item/record was deleted successfully."
}

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?

Login