Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs2017/src/api/design_documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Design documents are used to [build indexes](#indexes), [validate updates](#upda
- **Method**: `PUT /$DATABASE/_design/design-doc`
- **Request**: JSON of the design document information
- **Response**: JSON status
- **Roles permitted**: `_admin`
- **Roles permitted**: `_design`

To create a design document, upload it to the specified database.

Expand Down Expand Up @@ -125,7 +125,7 @@ _Example response to the copy request:_
- **Method**: `COPY /$DATABASE/_design/design-doc`
- **Request**: None
- **Response**: JSON describing the new document and revision.
- **Roles permitted**: `_writer`
- **Roles permitted**: `_design`
- **Query Arguments**:
- **Argument**: `rev`
- **Description**: Revision to copy from.
Expand Down Expand Up @@ -242,7 +242,7 @@ _Example response, containing the deleted document ID and revision:_
- **Method**: `DELETE /db/_design/design-doc`
- **Request**: None
- **Response**: JSON of deleted design document.
- **Roles permitted**: `_writer`
- **Roles permitted**: `_design`
- **Query Arguments**:
- **Argument**: `rev`
- **Description**: Current revision of the document for validation.
Expand Down