🍿 @lorenzopant/tmdb

Update Items

Update per-item comments for items already in a v4 list.

Updates the comment field for one or more items already present in the list. Items not included in the request are unaffected.

async update_items(list_id: number, body: V4UpdateListItemsBody): Promise<V4UpdateListItemsResponse>

TMDB Reference: Update Items

Parameters

NameTypeRequiredDescription
list_idnumberThe TMDB list ID.

Body

NameTypeRequiredDescription
itemsV4ListItemInput[]Items to update. Each entry requires media_type and media_id; set comment to the new value.

Returns

V4UpdateListItemsResponse

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.update_items(8700, {
	items: [
		{ media_type: "movie", media_id: 550, comment: "Updated: a masterpiece" },
		{ media_type: "tv", media_id: 1396, comment: "Best finale ever" },
	],
});

On this page