mkcol

Create a Collection inside a Library.

If the collection already exists, the request has no effect.


HTTP Request: POST

Parameters:

Name Value Description
path Path of the Collection to create. Can be specified explicitly or as the remainder the HTTP URL.
parents If true (default), create parent collections as needed.
library Name of Library used (can be empty if exactly one Library in server).

Response:

   mime-type: text/plain

A line containing the path of the new collection 

Error codes:

AccessControl
when the user is not allowed to write in a parent Collection.
XMLData
When parents=false and the parent Collection does not exist. If the path conflicts with an existing Document.