[
https://issues.apache.org/jira/browse/CAMEL-18363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17639722#comment-17639722
]
Shikhar edited comment on CAMEL-18363 at 11/28/22 4:18 PM:
-----------------------------------------------------------
[~davsclaus], should I add this as a note under the Message Body heading?
"NOTE: To update a CouchDB document, it's _id and _rev field must be part of
the json payload routed to CouchDB by Camel."
[https://github.com/apache/camel/blob/main/components/camel-couchdb/src/main/docs/couchdb-component.adoc]
Setting "_id" and "_rev" is more of a requirement for making updates in CouchDB
than a issue...I had the same problem when I tried updating using curl.
was (Author: JIRAUSER296967):
Should I add this as a note under the Message Body heading?
"NOTE: To update a CouchDB document, it's _id and _rev field must be part of
the json payload routed to CouchDB by Camel."
[https://github.com/apache/camel/blob/main/components/camel-couchdb/src/main/docs/couchdb-component.adoc]
Setting "_id" and "_rev" is more of a requirement for making updates in CouchDB
than a issue...I had the same problem when I tried updating using curl.
> camel-couchdb - improve the documentation for updates
> -----------------------------------------------------
>
> Key: CAMEL-18363
> URL: https://issues.apache.org/jira/browse/CAMEL-18363
> Project: Camel
> Issue Type: Improvement
> Components: camel-couchdb, documentation
> Affects Versions: 3.18.0
> Reporter: Luca Ferrari
> Priority: Minor
> Fix For: 3.x
>
>
> at the moment looking at the documentation it seems to update an entry you
> need to provide an 'update' operation and 'doc_rev' id as headers, while this
> is not really the way the update is implemented.
> To perform an actual update using the couchdb connector you would need to set
> the '_id' and '_rev' fields in the json payload sent to couchdb
--
This message was sent by Atlassian Jira
(v8.20.10#820010)