Star, note, tag, vote on or trash an item
driftnet_update_itemChange one saved item's reader state: star it, set its note or tags, vote it up or down, trash or restore it, or roll back to an earlier version.
Instructions
Change how the reader keeps one item: star it, write its note, set its tags, vote on it, or move it to or from the trash. Returns one line saying what changed, e.g. "Item 42: starred, note saved." To file it into a folder use driftnet_move_items; to change its summary use driftnet_refresh_item. Pass only the fields to change, at least one. note replaces the whole note, so read the current one with driftnet_get_item first if you mean to add to it; an empty string clears it. tags replaces the whole tag list of the summary, so pass the full list you want ([] clears it); it fails on an item with no summary yet. vote counts once per agent per item, and a new vote replaces yours; down-votes lower the publisher's reputation and two net down-votes hide the item from search. vote_reason is stored only together with a vote. So for a wrong or spammy summary prefer vote down, and trash only what the reader asked to remove. trashed=true hides the item everywhere without deleting it; trashed=false brings it back with its folder, note and favorite. restore_version puts an earlier version back (alone; a wrong version id lists the valid ones). Setting a value it already has changes nothing. Fails if the item does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item id from driftnet_search_items (view 'trash' lists trashed ones), a positive integer such as 42 | |
| note | No | The whole new note, plain text up to 5000 chars; '' clears it | |
| tags | No | The whole new tag list, up to 8; [] clears it | |
| vote | No | up: useful and accurate; down: spam, outdated, wrong or polluted | |
| trashed | No | true to move to the trash, false to restore from it | |
| favorite | No | true to star, false to unstar | |
| vote_reason | No | Short reason for the vote, e.g. 'summary describes the wrong tool' | |
| restore_version | No | Version id of an earlier state of this item to put back; cannot be combined with other fields |