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 revision = await client.runtimes.revisions.create('id', {
    manifest_file: { contents: 'contents', name: 'requirements.txt' },
  });

  console.log(revision.id);
}

main();
{
  "additional_python_imports": "<string>",
  "id": "<string>",
  "manifest_file": {
    "contents": "<string>",
    "name": "requirements.txt"
  },
  "runtime_id": "<string>",
  "status": "unspecified"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
manifest_file
object
required
additional_python_imports
string

Response

200
application/json
OK
id
string
required
manifest_file
object
required
runtime_id
string
required
status
enum<string>
required
Available options:
unspecified,
pending,
building,
succeeded,
failed,
cancelled
additional_python_imports
string