From eb865c5d0650d8a3ea24c2f811badf7303765723 Mon Sep 17 00:00:00 2001 From: niltonheck Date: Tue, 30 Sep 2025 12:06:14 -0300 Subject: [PATCH] fix: upsert endpoint correction --- src/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,