Closed Mihai-B closed 2 years ago
Maybe that is just a problem in the post and not in the actual request, but there is a closing }
missing in your JSON after the Trakt-Id.
It was just a problem in the post. I updated it now and I also formated a bit the JSONs.
I have also tried with the full show body as described in the API docs. SO the example body looks like this:
{
"shows": [
{
"ids": {
"trakt": 169009,
"tmdb": 110492,
"slug": "peacemaker-2022",
"imdb": "tt13146488",
"tvdb": 391153
},
"title": "Peacemaker",
"year": 2022
}
]
}
Still nothing is added to the watchlist on Trakt
Based on your examples I wasn't able to reproduce your issue. Have you got other endpoints that you're hitting that are working correctly, or are they all not working? You may need to include the headers and such that you're sending in order for others to help further.
Hi tysonkd I have the endpoints for add rating, mark as watched, check in, etc, they all work. But this one does not... Out of curiosity, what do you receive as response when you add something to the watchlist ?
Edit: I do want to mention that they used to work.
I found the issue. I was missing the content type header.... my bad
Making a post request to
https://api.trakt.tv/sync/watchlist
and body:Returns a response: status code: 201 Body:
But it does not add the show to the watchlist.
Is it the API or am I doing something wrong here ?