Wsparcie The Movie Database

Hi,

I'm able to create a V4 list but when I try to delete it, it returns a 404.

Fetch request

const url = 'https://api.themoviedb.org/4/8523424';
const options = {
  method: 'DELETE',
  headers: {
    accept: 'application/json',
    Authorization: 'Bearer {MY_ACCESS_TOKEN}'
  }
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));

Response

{
  "success": false,
  "status_code": 34,
  "status_message": "The resource you requested could not be found."
}

Please let me know how to resolve this issue.

Thanks!

3 odpowiedzi (strona 1 z 1)

Jump to last post

const url = 'https://api.themoviedb.org/4/8523424';

Is not a valid request. I think you're looking for:

const url = 'https://api.themoviedb.org/4/list/8523424';

Umm, I'm using the Try It feature where I have to pass only the list id.

@travisbell said:

Is not a valid request. I think you're looking for:

const url = 'https://api.themoviedb.org/4/list/8523424';

With V4, don't we have to pass any account_object_id or anything? I'm asking because even https://api.themoviedb.org/4/list/8523424 ain't working. It is returning a 404 (Client error - the request contains bad syntax or cannot be fulfilled).

Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.

Globalny

s zaznacz pasek wyszukiwania
p otw贸rz menu profilu
esc Zamknij otwarte okno
? otw贸rz okno skr贸t贸w klawiszowych

On media pages

b go back (or to parent when applicable)
e przejd藕 do strony edycji

On TV season pages

(prawa strza艂ka) przejd藕 do nast臋pnego sezonu
(lewa strza艂ka) przejd藕 do poprzedniego sezonu

On TV episode pages

(prawa strza艂ka) przejd藕 do nast臋pnego odcinka
(lewa strza艂ka) przejd藕 do poprzedniego odcinka

On all image pages

a otw贸rz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prze艣lij formularz

On discussion pages

n otw贸rz now膮 dyskusj臋
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusj臋
l przejd藕 do ostatniej odpowiedzi
ctrl+ enter wy艣lij swoj膮 wiadomo艣膰
(prawa strza艂ka) nast臋pna strona
(lewa strza艂ka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj