A project's cover, screenshots and clips, in order
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/mediaconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/media"
response = requests.get(url)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "cover",
"status": "pending",
"url": "<string>",
"content_type": "<string>",
"sha256": "<string>",
"size": 123,
"width": 123,
"height": 123,
"alt": "<string>",
"position": 123,
"created_at": "<string>"
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Media
A project's cover, screenshots and clips, in order
Pending media (not uploaded yet) only show to the project’s org and staff.
GET
/
projects
/
{owner}
/
{slug}
/
media
A project's cover, screenshots and clips, in order
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/mediaconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/media"
response = requests.get(url)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "cover",
"status": "pending",
"url": "<string>",
"content_type": "<string>",
"sha256": "<string>",
"size": 123,
"width": 123,
"height": 123,
"alt": "<string>",
"position": 123,
"created_at": "<string>"
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}