Skip to main content
POST
Create an artifact version

Path Parameters

artifact_id
string
required

Artifact ID

Minimum string length: 1

Body

application/json
version
integer
required

Current artifact version for optimistic concurrency

Required range: 1 <= x <= 9007199254740991
files
object[]

Every file of the version, or with made_from the files to add to the source's; a new version replaces the whole set. Send a small file's content inline, name a file by its id, or keep a file of the current version by its sha256. Required unless made_from is given

Required array length: 1 - 1000 elements
made_from
object

Start from another artifact version, such as a type. The source supplies its files and any capability declaration. Add files at new paths and leave out artifact.json. The copy survives changes to or deletion of the source

Response

Success

type
enum<string>
required
Available options:
artifact_version
artifact_id
string
required
version
integer
required
Required range: 1 <= x <= 9007199254740991
capabilities
object
required

What the version's page may ask of the platform at run time, as declared in its artifact.json. Empty when it declares nothing

made_from
object | null
required

The artifact version this version's files were started from, or null

file_count
integer
required
Required range: 0 <= x <= 9007199254740991
total_bytes
integer
required
Required range: 0 <= x <= 9007199254740991
files
object[]
required
created_at
string
required