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 στις 01: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 στις 02: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 στις 08: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 στις 01: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?