Skip to main content
POST
Confirm an upload, making the media ready

Authorizations

Authorization
string
header
required

An API key (pch_...) or the token from pch login.

Path Parameters

owner
string
required
Example:

"patch"

slug
string
required
Example:

"demo-mod"

id
string<uuid>
required

Response

The media, ready

id
string<uuid>
required
kind
enum<string>
required
Available options:
cover,
screenshot,
clip
status
enum<string>
required

pending until the upload is completed; only the project's managers see it

Available options:
pending,
ready
url
string
required

Where it's served from, once it's ready

content_type
string
required
sha256
string
required
size
integer
required
width
integer | null
required
height
integer | null
required
alt
string | null
required
position
integer
required

Order among media of the same kind

created_at
string
required