Hi, I try to add movie with id 767 (Harry Potter) to user's list. But I get an error with code 34. What is media_type and media_id?
My request:
curl --request POST \
--url https://api.themoviedb.org/4/{USER_LIST_ID}/items \
--header 'Authorization: Bearer {JWT_USER_TOKEN}' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"items": [
{
"media_type": "movie",
"media_id": 767
}
]
}
'
Thanks
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por ticao2 🇧🇷 pt-BR
el 12 de julio de 2023 a las 09:11
I do not master the use of TOKEN or v4.
But I can clarify two things.
Error 34:
See here: https://developer.themoviedb.org/docs/errors
Apparently he couldn't find his list.
Probably your USER_LIST_ID has some error.
media_type
It can be movie type or tv type (TV Show)
media_id
In this case, this TMDb ID 767 is the movie ID
Harry Potter and the Half-Blood Prince (2009)
See the 767 in the movie's URL: