Copy a folder from the caller's machine into the workspace [write]
Changed onThe body is the folder as a gzipped tar (up to 25 MB). It is unpacked at <workspace root>/<name> as the workspace owner and made a git repository whose first commit is that copy, so /workspace/patch later answers the work done on it. Wakes a parked pod. 400 invalid_name, 409 already_exists, 413 archive_too_large, 422 invalid_archive.
post/sessions/{id}/workspace/import
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/sessions/{id}/workspace/import
- AuthHTTP bearer
Path parameters
idstring required
The session id
Query parameters
namestring required
the folder's name in the workspace: 1–80 letters, digits, spaces, dots, dashes or underscores
Request body application/gzip
string binary required
Response
OK
Changes
- info
endpoint added
- info