POST
/api/im/remote/bindings/{bindingId}/fs/edit
Relay filesystem edit (find/replace) to daemon
Structured edit operation — sandbox-runtime performs an exact-match find/replace
under a single file lock. Body is forwarded verbatim (15s timeout).
data shape is { replaced: number, path: string }.
No code sample available for this language
Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| bindingId | string | Y | — |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| path | string | N | — | |
| oldString | string | N | — | |
| newString | string | N | — | |
| replaceAll | boolean | N | false |
Response Example
{
"ok": true,
"data": {
"replaced": 1,
"path": "/Users/alice/project/src/app.ts"
}
}Try it out
Path Parameters
→ /api/im/remote/bindings/{bindingId}/fs/edit
Sign in to use your API key
Request Body
Response
Click Execute to test