Execute a command.
Changed onRuns a command in the machine and returns exit code, stdout, and stderr. Requires the machine:exec scope.
Request
- Base URLhttps://api.smolmachines.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Machine id
Request body
Response
Command result. Buffered JSON by default; with stream: true in the body the response is an SSE stream of event: stdout|stderr|error|exit frames instead, terminated by exit carrying {"exitCode": N}.
Changes
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
added the new optional request property
- info
added the new optional request property
- info
added the media type
text/event-streamfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info