8.4. COPY /db/_design/design-doc

8.4.1. Copying a Design Document
8.4.2. Copying from a Specific Revision
8.4.3. Copying to an Existing Design Document
MethodCOPY /db/_design/design-doc
Request None
Response JSON of the copied document and revision
Admin Privileges Requiredno
Query ArgumentsArgumentrev
 Description Revision to copy from
 Optionalyes
 Typestring
HTTP HeadersHeaderDestination
 DescriptionDestination document (and optional revision)
 Optionalno
   

The COPY command (non-standard HTTP) copies an existing design document to a new or existing document.

The source design document is specified on the request line, with the Destination HTTP Header of the request specifying the target document.