diff --git a/src/collection.ts b/src/collection.ts index 967f9af..f6fca6d 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -962,7 +962,7 @@ export class Index { public async upsertDocuments(documents: T, init?: ClientRequestInit): Promise { await this.oramaInterface.request({ - path: `/v1/collections/${this.collectionID}/indexes/${this.indexID}/upsert`, + path: `/v1/collections/${this.collectionID}/indexes/${this.indexID}/documents/upsert`, body: documents as AnyObject[], method: 'POST', init,