The PUT method is used to create new databases, or to add or update existing database resources:
* a '''Create Database''':<br/>A new database is created if the URL only specifies the ''name of a database''. If the request body contains XML, a single document is created, adopting the name of the database.* an XML document or raw file '''Store Resource''':<br/>A resource is added to the database if the URL contains a ''database path''. If the addressed resource already exists, it is replaced by the new XML input.
If <code>application/xml</code> is specified as content type, the input is interpreted as XML. Otherwise, the data will be stored as raw resource.