machines
Cancel a job.
Changed onSends SIGTERM to a running job. Its exit code, 143, is recorded once it has stopped. Requires the machine:exec scope.
post/v1/machines/{id}/jobs/{job_id}/cancel
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
job_idstring required
Job id
Response
The job, as it stands after the signal
Changes
- info
endpoint added
- info