Skip to main content
POST
Publish an artifact

Headers

idempotency-key
string

Optional Idempotency-Key header for safe retries

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

Path Parameters

artifact_id
string
required

Artifact ID

Minimum string length: 1

Body

application/json
version

Version to serve, or "latest" (the default) to serve each new version as it is added

Required range: 1 <= x <= 9007199254740991
access
enum<string>

What anyone with the address may do with the artifact's data: view (files only), read or write. Each collection still allows at most what the version served declares for visitors. Collections a later version adds stay closed to visitors until a level is set again. Omit it to keep the level already set; a new publication starts at view

Available options:
view,
read,
write
if_current
object

Require the artifact version and publication settings to match the values you reviewed. Answers 409 if either changed

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