Skip to main content
PUT
Pick up a GitHub repository's new releases by themselves

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
repository
string
required
Required string length: 1 - 500
files
string[] | null
Maximum array length: 100
Required string length: 1 - 500
unpack
boolean
tag
string | null
Maximum string length: 200

Response

Following

repository
string
required
Example:

"https://github.com/mira/lantern-run"

files
string[] | null
required

The release files players get, by name with the version left out ("LanternRun_v*.zip"); null takes them all.

unpack
boolean
required

A browser game: its release's zip is unpacked

released_tag
string | null
required

The GitHub release the newest Patch release came from; null when it came from the default branch

checked_at
string | null
required
note
string | null
required

What the last check found