editor
Replace String
Replaces all occurrences of a string in a file with a new string.
post/api/editor/str-replace
Request body
Example request
{
"new_str": "new text",
"old_str": "old text",
"path": "/path/to/file.txt"
}Response
Successfully replaced string