editor
Replace String
Changed onReplaces all occurrences of a string in a file with a new string.
post/api/editor/str-replace
Request
- Base URLhttp://localhost:4242/your-computer-name
- URLhttp://localhost:4242/your-computer-name/api/editor/str-replace
- Authnone declared
Request body
Example request
{
"new_str": "new text",
"old_str": "old text",
"path": "/path/to/file.txt"
}Response
Successfully replaced string
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking