update-book
Update an existing notebook's fields by providing its ID and the changes. Only specified fields are modified, leaving others untouched, so no prior read is required.
Instructions
Update the existing notebook in the database. Only the fields you provide will be updated; omitted fields remain unchanged, so you do not need to read the notebook first. Call list-notebooks or read-book to find the notebook ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _id | Yes | The unique document ID which should start with `book:` and the remains are randomly generated string | |
| _rev | No | This is a CouchDB specific field. The current MVCC-token/revision of this document. Optional: the server merges your fields into the stored notebook, so it is only needed as an optimistic-concurrency guard. Pass it when you have read the notebook first and want the update to fail on a conflicting concurrent edit. | |
| name | No | The notebook name | |
| parentBookId | No | The ID of the parent notebook. Pass `null` to move the notebook to the root level. |