Table of Contents
The CouchDB API Server Document methods detail how to create, read, update and delete documents within a database.
A list of the available methods and URL paths are provided below:
Table 6.1. Document API Calls
| Method | Path | Description | 
|---|---|---|
| POST | /db | Create a new document | 
| GET | /db/doc | Returns the latest revision of the document | 
| HEAD | /db/doc | Returns bare information in the HTTP Headers for the document | 
| PUT | /db/doc | Inserts a new document, or new version of an existing document | 
| DELETE | /db/doc | Deletes the document | 
| COPY | /db/doc | Copies the document | 
| GET | /db/doc/attachment | Gets the attachment of a document | 
| PUT | /db/doc/attachment | Adds an attachment of a document | 
| DELETE | /db/doc/attachment | Deletes an attachment of a document |