Skip to main content
POST
Upload a program bundle

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

id
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$

Body

application/zip

The bundle ZIP.

Response

The program already had this content. Nothing changed.

programId
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$
bundleId
string
required

SHA-256 identity of the uploaded bundle. Pass it to createProgramRelease to serve it.

Pattern: ^[a-f0-9]{64}$
programFingerprint
string
required

Fingerprint of the bundle’s entry program.

component
enum<string>
required

What the program’s entry file is, as its spec states. A rater prices a risk. A guideline decides a submission step by step, and prices it with the raters it uses. It is a fact of one bundle: a program’s releases may differ.

Available options:
rater,
guideline
uses
object[]
required

The raters the bundle’s guideline uses. Empty for a rater.

uploadedAt
string<date-time>
required

When this content was first uploaded.

uploadedBy
string
required

Who first uploaded this content.

alreadyUploaded
boolean
required

True when this program already had this exact content. Nothing changed.

latestReleaseVersion
integer | null
required

The program’s latest release version (its highest ready release), or null before its first release. The next release needs a higher version to become the latest.

Required range: x > 0