Skip to content

Commit 1b5d0ab

Browse files
authored
Fix code sample for edit document by filter route (#3082)
1 parent cf0d2e2 commit 1b5d0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/api/documents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ Use `context` to pass data to the `function` scope. By default a function only h
439439

440440
```sh
441441
curl \
442-
-X POST 'http://localhost:7700/indexes/INDEX_NAME/search' \
442+
-X POST 'http://localhost:7700/indexes/INDEX_NAME/documents/edit' \
443443
-H 'Content-Type: application/json' \
444444
--data-binary '{
445445
"function": "doc.title = `${doc.title.to_upper()}`"

0 commit comments

Comments
 (0)