machines
Execute a code snippet.
Changed onRuns a code snippet with the matching interpreter inside the machine and returns the result. Requires the machine:exec scope.
post/v1/machines/{id}/code
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
Code result
Changes
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
added the new optional request property
- 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