update_collection
Rename or reparent a Zotero collection in place, keeping its key stable to avoid disturbing items and sub-collections. Pass the current version to guard against stale updates.
Instructions
Rename and/or move (reparent) a collection, in place. Safe: the collection's key is unchanged, so items filed in it and any sub-collections stay put.
name: new name; omit to leave the current name unchanged. parent_key: new parent collection's key, to nest this collection under it; pass "" (empty string) to move it to the top level (out of any parent); omit entirely to leave the parent unchanged. At least one of name/parent_key must be given. version: the collection's current version (from list_collections) -- refused if stale, same as update_item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| name | No | ||
| version | Yes | ||
| parent_key | No |