Skip to main content
POST
Create an artifact

Headers

idempotency-key
string

Optional Idempotency-Key header for safe retries

Required string length: 1 - 128
Pattern: ^\S[\s\S]*\S$|^\S$|^$

Body

application/json
name
string
required

Human-readable artifact name

Required string length: 1 - 256
files
object[]

Every file of version 1, or with made_from the files to add to the source's. Send a small file's content inline, or name a file by its id. 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

id
string
required
Minimum string length: 1
type
enum<string>
required
Available options:
artifact
name
string
required
version
integer
required

Current version

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
publication
object | null
required

The artifact's public address, or null when it is not published

created_at
string
required
updated_at
string
required