machines
Start a job.
Changed onStarts a command detached and returns at once. Its stdout, stderr and exit code are kept in the machine, so the caller can disconnect and poll GET /v1/machines/{id}/jobs/{job_id} and read output from an offset. A running job keeps the machine from auto-stopping. Wakes a stopped machine. The image needs sh. Requires the machine:exec scope.
post/v1/machines/{id}/jobs
Request
- Base URLhttps://api.smolmachines.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Machine id
Request body
Response
The job is running
Changes
- info
endpoint added
- info