You can copy the latest version of a document to a new document by specifying the current document and target document:
COPY http://couchdb:5984/recipes/FishStew Content-Type: application/json Destination: IrishFishStew
The above request copies the document
FishStew
to the new document
IrishFishStew
. The response is the ID and
revision of the new document.
{ "id" : "IrishFishStew", "rev" : "1-9c65296036141e575d32ba9c034dd3ee" }