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.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ نوفمبر 25, 2018 في 1:22 مساءا
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?رد بواسطة Brad Pitt
بتاريخ نوفمبر 26, 2018 في 2:29 صباحا
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.
رد بواسطة Travis Bell
بتاريخ نوفمبر 27, 2018 في 8:49 مساءا
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:
رد بواسطة Aizaz Alam Khan
بتاريخ أكتوبر 21, 2023 في 1:13 صباحا
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?