From 1b5d0abe09dfb55b0c02de814c8784336c3d6f99 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 19 Dec 2024 13:19:08 +0100 Subject: [PATCH] Fix code sample for edit document by filter route (#3082) --- reference/api/documents.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/api/documents.mdx b/reference/api/documents.mdx index 8029fe3a9..61b3a66c0 100644 --- a/reference/api/documents.mdx +++ b/reference/api/documents.mdx @@ -439,7 +439,7 @@ Use `context` to pass data to the `function` scope. By default a function only h ```sh curl \ --X POST 'http://localhost:7700/indexes/INDEX_NAME/search' \ +-X POST 'http://localhost:7700/indexes/INDEX_NAME/documents/edit' \ -H 'Content-Type: application/json' \ --data-binary '{ "function": "doc.title = `${doc.title.to_upper()}`"