Patch File
Agent Filesystem
Patch File
Apply a partial update to a file in an agent’s workspace.
PATCH
Patch File
Authentication
Requires JWT token or Platform API key.Agent UUID
File path within the agent workspace (wildcard segment)
Patch operation:
append, prepend, or replaceContent to apply
Byte offset for
replace operationsLength for
replace operationsExample Request
Append content to the end of a file:Response
Response Fields
| Field | Type | Description |
|---|---|---|
path | string | Absolute path of the patched file |
size | number | New file size in bytes |
updated_at | string | Update timestamp (ISO 8601) |
Status Codes
| Code | Description |
|---|---|
200 | File patched successfully |
400 | Invalid request body or operation |
401 | Invalid authentication |
403 | Access denied |
404 | Agent or file not found |

