Save a version
Compiles the procedure and saves it as the next version. The first version of a Machine creates the Machine and is published. A procedure with errors gives 400 procedure_invalid. A save of the same procedure and tools as the latest version answers 200 with that version. Needs the scopes machines and machines:write.
Authentication
An API key (crk_), an exchanged token (crt_) or a JWT of a trusted issuer. The credential needs the scope of the capability. Read the description of each route.
Path parameters
The Machine name: lowercase letters, digits and hyphens.
Request
Only with include=procedure.
The tools of the procedure: a list, or an object with tools.
The latest version that you read. Another latest version gives 409 version_conflict.
Response headers
The id of the request: req_ and a ULID. Every answer has it.
Response
key:<id> or token:<id>.
Only with include=procedure.
Only with include=tools.
The compiled program. Only with include=ir.