Method | COPY /db/doc | |
Request | None | |
Response | JSON of the new document and revision | |
Admin Privileges Required | no | |
Query Arguments | Argument | rev |
Description | Revision to copy from | |
Optional | yes | |
Type | string | |
HTTP Headers | Header | Destination |
Description | Destination document (and optional revision) | |
Optional | no | |
Return Codes | ||
201 | Document has been copied and created successfully | |
409 | Conflict (target document already exists) |
The COPY
command (which is non-standard HTTP)
copies an existing document to a new or existing document.
The source document is specified on the request line, with the
Destination
HTTP Header of the request
specifying the target document.