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()}`"