API v1
Agents
Agents Workspace
Workspace: File Edit
Edit a file in the agent's workspace by replacing exact text occurrences.
post/v1/agents/{agent_id}/workspace/file_edit
Request
- Base URLhttps://api.xpander.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
Path parameters
agent_idstring required
Request body
Example request
{
"path": "app.py",
"old_text": "DEBUG = True",
"new_text": "DEBUG = False"
}Response
Successful Response
Example response
{
"replacements_made": 1
}Changes
No recorded changes to this operation across all 6 revisions of this API.