Skip to main content
POST
Add a cover, screenshot or clip, and get where to upload it

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"

Body

application/json
kind
enum<string>
required
Available options:
cover,
screenshot,
clip
content_type
string
required
Example:

"image/png"

sha256
string
required
size
integer
required
alt
string

What it shows

Maximum string length: 300
width
integer
Required range: 1 <= x <= 16384
height
integer
Required range: 1 <= x <= 16384

Response

The media, and where to upload it

media
object
required
upload
object | null
required

Null when Patch already has these bytes: the media is ready