Skip to content

Commit

Permalink
Fix code sample for edit document by filter route (#3082)
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire authored Dec 19, 2024
1 parent cf0d2e2 commit 1b5d0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/api/documents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`"
Expand Down

0 comments on commit 1b5d0ab

Please sign in to comment.