🍿 @lorenzopant/tmdb

Remove Items

Remove one or more items from a v4 list.

Removes one or more movies or TV shows from a list. Items not present in the list are silently ignored.

async remove_items(list_id: number, body: V4RemoveListItemsBody): Promise<V4ListStatusResponse>

TMDB Reference: Remove Items

Parameters

NameTypeRequiredDescription
list_idnumberThe TMDB list ID.

Body

NameTypeRequiredDescription
itemsPick<V4ListItemInput, "media_type" | "media_id">[]Array of items to remove. Only media_type and media_id are required.

Returns

V4ListStatusResponse

Errors

HTTPTMDB codeCause
4013Invalid or missing access token.
40434List not found.

Example

import { TMDB } from "@lorenzopant/tmdb";

const tmdb = new TMDB("your-access-token");

await tmdb.v4.lists.remove_items(8700, {
	items: [
		{ media_type: "movie", media_id: 550 },
		{ media_type: "tv", media_id: 1396 },
	],
});

On this page