filesystem
Write file
Write the raw request body to an absolute path or a path relative to the requested location, creating parent directories, and return the resolved absolute path. Unlike read, the target is not confined to the location. Experimental: may change without compatibility guarantees.
post/api/experimental/fs/write
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/experimental/fs/write
- Authnone required
Query parameters
pathstring required
An absolute path or a path relative to the requested location. Missing parent directories are created.
Request body application/octet-stream
string binary required
Response
Success
Changes
No operation changes recorded.