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.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 25 novembre 2018 à 13h22
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?Réponse de Brad Pitt
le 26 novembre 2018 à 02h29
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.
Réponse de Travis Bell
le 27 novembre 2018 à 20h49
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:
Réponse de Aizaz Alam Khan
le 21 octobre 2023 à 01h13
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?