item (Metadata)¶
Operations for updating item metadata, renaming multiple items and managing tag and folder memberships. All operations target a library and require metadata.write. Writes addressed to a grouped member ID automatically apply to its parent item.
item.update¶
Update display name, notes, source URL, star rating, favorite/explicit flags or custom field values on one or more items. Omitted fields remain unchanged.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id |
string \| number |
One of id / ids |
— | Single item UUID or row ID. |
ids |
(string \| number)[] |
One of id / ids |
— | Multiple item IDs all receiving the same updates. |
name |
string |
No | — | New display name (also renames managed files and organize location files on disk). |
annotation |
string |
No | — | New notes text. |
url |
string |
No | — | New source URL (item.update uses url, matching Item.url, while item.add.* uses sourceUrl). |
rating |
number |
No | — | Star rating 0–5. |
favorite |
boolean |
No | — | Set or clear the Favorite heart flag. |
explicit |
boolean |
No | — | Set or clear the Explicit blur flag. |
fields |
Record<string, unknown> |
No | — | Map of custom field keys to values (null clears a field; writing to a file-reading field marks it as a manual override; writing to an unindexed field is refused). |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed (what: "metadata"). Returns 400 bad_request if neither id nor ids is provided or if a field fails validation/is unindexed; 404 not_found if any item does not exist.
item.rename¶
Assign distinct names to multiple items in a single atomic transaction (used by Batch Rename).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
items |
{ id: string \| number; name: string }[] |
Yes | — | List of { id, name } rename entries. |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed (what: "metadata").
item.addTags¶
Attach one or more tags to items, creating any tag names that do not exist yet.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids |
(string \| number)[] |
Yes | — | Target item IDs. |
tags |
string[] |
Yes | — | Tag names to add (case-insensitive deduplication). |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed and tags.changed.
item.removeTags¶
Remove specific tags, or all tags, from items.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids |
(string \| number)[] |
Yes | — | Target item IDs. |
tags |
(string \| number)[] |
Unless all: true |
— | Tag names or numeric IDs to remove. |
all |
boolean |
No | false |
Remove every tag from the given items. |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed and tags.changed.
item.addToFolders¶
Add items to one or more folders without removing existing folder memberships (applies target folders' auto-tags and creates managed files/ hard links).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids |
(string \| number)[] |
Yes | — | Target item IDs. |
folders |
number[] |
Yes | — | Destination folder IDs. |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed and folders.changed. Returns 404 not_found if any folder ID does not exist.
item.removeFromFolders¶
Remove items from the specified folders while keeping the items in the library (and in any other folders they belong to).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids |
(string \| number)[] |
Yes | — | Target item IDs. |
folders |
number[] |
Yes | — | Folder IDs to remove items from. |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed and folders.changed.
item.moveToFolder¶
Place items into folder while removing them from from (including its subfolders), or from every other folder when from is omitted.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ids |
(string \| number)[] |
Yes | — | Target item IDs. |
folder |
number |
Yes | — | Destination folder ID. |
from |
number |
No | (all other folders) | Source folder ID to leave (with its subfolders). |
library |
string |
No | Default library | Routing parameter: library ID from library.list, folder path or name. Not allowed for plugin callers. |
Returns Done.
Example request
Example response
Events and errors Emits items.changed and folders.changed.