Hello,
I have a problem , so i try to remove selected movie from watch list using following call "POST /account/{account_id}/watchlist". In last parameter in request body i pass "false", as i understood that's mean that i remove item from list , but actually item doesn't remove.
Below you can see the response: { "status_code": 12, "status_message": "The item/record was updated successfully." }
In params i pass : "session_id" and "api_key" In header Content-Type : "application/json" In request body : "media_id" as String value, "media_type" also as String value and "favorite" as Boolean value.
My end point: https://api.themoviedb.org/3/account/11/favorite?session_id=XXXXXXXXXXXXXXXX&api_key=XXXXXXXXXXXXXXX
Thank you in advance for help, Kind regards, Brad.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on November 25, 2018 at 1:22 PM
Hi Brad,
I just gave this a spin and had no problems adding and removing items from my favourite list. Here's an example request to remove the item from my favourite list:
POST Body:
Are you making sure your values for
media_id
andfavorite
are a integer and boolean?Reply by Brad Pitt
on November 26, 2018 at 2:29 AM
HI Travis,
That how look my endpoint :
https://api.themoviedb.org/3/account/11/favorite?session_id=######&api_key=#######
And i have the same body as you wrote above but actually i receive The same message as in previous time.
I can mark movie as favorite, but i can remove it from favorite, but the main difference between two calls is last value of the body, we have to change just boolean value from TRUE to FALSE.
But it's not working ... May bу there are anything else can be wrong? Kind regards, Brad.
Reply by Travis Bell
on November 27, 2018 at 8:49 PM
Are you able to run these cURL commands? Here's the 4 that I just ran that are working properly:
Add to my favourite list:
Check my favourite list, notice
284054
is first in my list. Also note that I added asort_by=created_at.desc
param to make sure I am getting items sorted that are newest added first.Then I remove the item:
And finally call my list one last time to see that the item is removed:
Reply by Aizaz Alam Khan
on October 21, 2023 at 1:13 AM
I have the same issue, I just change the favorite to false for removing the specific movie from my favorite movies list but it is not working... can you help me out in it?