update-tag
Update an existing tag in Inkdrop with its ID and the fields to change. Only the given fields are modified; the rest remain unchanged, saving you from reading the full tag first.
Instructions
Update the existing tag in the database. Only the fields you provide will be updated; omitted fields remain unchanged, so you do not need to read the tag first. Call list-tags or read-tag to find the tag ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _id | Yes | The unique document ID which should start with `tag:` 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 tag, so it is only needed as an optimistic-concurrency guard. Pass it when you have read the tag first and want the update to fail on a conflicting concurrent edit. | |
| name | No | The name of the tag | |
| color | No | The color type of the tag |