I'm using this code to add a rating for a movie or delete it
@POST("https://api.themoviedb.org/3/movie/{movie_id}/rating?api_key=${BuildConfig.apikey}")
suspend fun rateMovie(@Path("movie_id") movie_id: Int, @Body value: Double): Rate
@DELETE("https://api.themoviedb.org/3/movie/{movie_id}/rating?api_key=${BuildConfig.apikey}")
suspend fun deleteRateMovie( @Path("movie_id") movie_id: Int): Rate
I tried following the docs but I keep getting 404, 401 exceptions
also just trying this url https://api.themoviedb.org/3/movie/550988/rating?api_key=MY_KEY&value=7.0 in browser gives me
"success": false,
"status_code": 34,
"status_message": "The resource you requested could not be found."
is that not the right way to add value to the url or what is the problem? thanks.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by superboy97
on November 6, 2021 at 5:26 PM
The session_id is missing in your query.