diff --git a/swiftype.php b/swiftype.php index 359e70f..3b43ccc 100644 --- a/swiftype.php +++ b/swiftype.php @@ -91,6 +91,10 @@ public function update_documents($engine_id, $document_type_id, $documents = arr return $this->put($this->documents_path($engine_id, $document_type_id).'/bulk_update', array(), array('documents' => $documents)); } + public function create_or_update_documents($engine_id, $document_type_id, $documents = array()) { + return $this->post($this->documents_path($engine_id, $document_type_id).'/bulk_create_or_update', array(), array('documents' => $documents)); + } + public function destroy_document($engine_id, $document_type_id, $document_id) { return $this->delete($this->document_path($engine_id, $document_type_id, $document_id)); }