curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/releases/{version}/review \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/releases/{version}/review', 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}/releases/{version}/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"project": "<string>",
"version": "<string>",
"status": "draft",
"next": "<string>",
"open_code": "<string>",
"open_when_live": {
"status": "waiting",
"why": "<string>"
},
"cover": {
"needed": true,
"free": true,
"stopped": "<string>"
},
"urls": {
"page": "<string>",
"play": "<string>",
"game": "<string>"
},
"test_link": "<string>",
"check_runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "files",
"status": "queued",
"summary": "<string>",
"rules_version": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"findings": [
{
"rule_id": "PA-130",
"severity": "blocking",
"path": "<string>",
"message": "<string>",
"suggestion": "<string>",
"url": "<string>"
}
],
"progress": {
"step": "files",
"step_number": 123,
"steps": 123,
"done": 123,
"total": 123,
"minutes_so_far": 123,
"usual_minutes": 123,
"slow": true
}
}
],
"staff_review": {
"decision": "approved",
"notes": "<string>",
"created_at": "<string>"
},
"feedback_ask": {
"ask": "<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>"
}
}Where a release is in its review: status, checks and findings
With wait, it holds the answer while Patch is checking or reviewing the release, until something changes (up to 50 seconds), so an agent doesn’t have to ask again and again.
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/releases/{version}/review \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/releases/{version}/review', 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}/releases/{version}/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"project": "<string>",
"version": "<string>",
"status": "draft",
"next": "<string>",
"open_code": "<string>",
"open_when_live": {
"status": "waiting",
"why": "<string>"
},
"cover": {
"needed": true,
"free": true,
"stopped": "<string>"
},
"urls": {
"page": "<string>",
"play": "<string>",
"game": "<string>"
},
"test_link": "<string>",
"check_runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "files",
"status": "queued",
"summary": "<string>",
"rules_version": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"findings": [
{
"rule_id": "PA-130",
"severity": "blocking",
"path": "<string>",
"message": "<string>",
"suggestion": "<string>",
"url": "<string>"
}
],
"progress": {
"step": "files",
"step_number": 123,
"steps": 123,
"done": 123,
"total": 123,
"minutes_so_far": 123,
"usual_minutes": 123,
"slow": true
}
}
],
"staff_review": {
"decision": "approved",
"notes": "<string>",
"created_at": "<string>"
},
"feedback_ask": {
"ask": "<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>"
}
}Path Parameters
Query Parameters
Response
The review
draft, then checking (file checks). A browser game then goes to cloud_review, then published. A mod goes to cloud_review, then in_review (a staff member), then published. Any step can end in rejected.
draft, checking, cloud_review, in_review, published, rejected, yanked, quarantined A browser game's test link, once it's submitted and while it isn't out yet: its play page with ?release=, which plays this version on Patch, sign-in and rooms included, for anyone signed in who has the link, without it reaching the game's players. Send it to the person so they can play it with friends before it's published. Null for anything else, and where the game backend is off.