v1
latestOpenAPI 3.1.02026-07-13372867.8 KBeditor
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