Custom Runtimes
Create runtime
Creates a runtime.
Copy
Ask AI
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
async function main() {
const runtime = await client.runtimes.create({
language: 'python',
manifest_file: { contents: 'contents', name: 'requirements.txt' },
name: 'name',
});
console.log(runtime.id);
}
main();
Copy
Ask AI
{
"additional_python_imports": "<string>",
"engine": "wasi",
"id": "<string>",
"language": "python",
"manifest_file": {
"contents": "<string>",
"name": "requirements.txt"
},
"name": "<string>",
"revision_id": "<string>",
"status": "pending"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
Ask AI
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
async function main() {
const runtime = await client.runtimes.create({
language: 'python',
manifest_file: { contents: 'contents', name: 'requirements.txt' },
name: 'name',
});
console.log(runtime.id);
}
main();
Copy
Ask AI
{
"additional_python_imports": "<string>",
"engine": "wasi",
"id": "<string>",
"language": "python",
"manifest_file": {
"contents": "<string>",
"name": "requirements.txt"
},
"name": "<string>",
"revision_id": "<string>",
"status": "pending"
}
Assistant
Responses are generated using AI and may contain mistakes.