containers-update
Update an existing container — rename, change description or negative_space (what does NOT belong here), move to a different parent, set display position, or archive/unarchive it. Works for both personal and team containers the current user can edit (team containers require the editor role). Required: id (integer). Optional: name, description, negative_space (pass null to clear it), parent_id (null for root, must be in the same scope), position (integer, lower = first). Archiving: archived (boolean) archives or unarchives the folder itself; add include_notes: true to also retire/reactivate every note filed in it IN BULK, and include_nested: true to sweep nested sub-folders (and, with include_notes, their notes) too. This is THE way to retire a whole folder — e.g. a finished project or a large import whose notes keep surfacing in dashboards — in one call; never loop notes-update over each note for that. The response then includes containers_changed and notes_changed counts (rows actually flipped; note bodies are not returned). On team containers an include_nested sweep requires the editor role on every affected sub-folder. Caveat on reversing: an unarchive sweep reactivates EVERYTHING it touches — include_nested resurrects sub-folders, and include_notes resurrects notes, that the user had archived individually before the sweep. When that matters, unarchive selectively: archived: false on specific folders, and individual notes via notes-update. Unarchiving a nested folder also reactivates its archived ancestor folders, so the restored folder stays reachable. Find archived folders again later with containers-list scope 'archived'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container ID (required) | |
| name | No | New name | |
| archived | No | Archive (true) or unarchive (false) the folder. On its own this only flags the folder; combine with include_notes/include_nested to retire its contents too. | |
| position | No | Display order position (lower numbers appear first) | |
| parent_id | No | New parent container ID, or null to move the container to root level. Must belong to the same scope as the container. | |
| description | No | New description | |
| include_notes | No | With archived: also set the same archived state on every kept note filed in the folder (and in its sub-folders when include_nested is true), in one bulk update. Default: false. | |
| include_nested | No | With archived: apply the same archived state to all nested sub-folders as well. Default: false. | |
| negative_space | No | What does NOT belong in this folder, or null to clear it. |