public function postDocument($document, $database = null) { $location = $this->getDocumentLocation($database ?: $this->database); return $this->adapter->request('POST', $location, null, $document); }