Write one task file [write]
Changed onThe body is the file's bytes (16 MiB at most; 413 file_too_large). The write becomes the current file. base_sha256 names what the caller last saw at the path (empty for nothing); when something else is current the default write is still made, both versions are kept, and the response says conflict: true. With require_base_match=true, a base is required and a mismatch instead returns 409 revision_conflict without updating the file. A task's space has no total-size or file-count limit. Sessions of the task pick the file up at the start of their next turn.
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/tasks/{id}/files/{path}
- AuthHTTP bearer
Path parameters
The task id: the id of its root session (sess_…)
The file's path inside the task's file space, such as report.md or data/rows.csv
Query parameters
Request body application/octet-stream
Response
OK
Changes
- info
added the new optional
queryrequest parameterrequire_base_match - info
added the optional property
/to the response with the status
- info