A covers job: its takes, and the free allowance left
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/covers/{job} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/covers/{job}', 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}/covers/{job}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "<string>",
"kind": "make",
"state": "queued",
"shape": "<string>",
"subject": "<string>",
"instruction": "<string>",
"fixes": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"takes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shape": "wide",
"state": "making",
"url": "<string>",
"preview_url": "<string>",
"width": 123,
"height": 123,
"fixed_from": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"set_as": "<string>",
"error": "<string>"
}
],
"allowance": {
"free": true,
"note": "<string>",
"takes_per_game": 123,
"fixes_per_game": 123,
"takes_used": 123,
"fixes_used": 123,
"takes_left": 123,
"fixes_left": 123,
"stopped": "<string>"
},
"next": "<string>",
"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>"
}
}Covers
A covers job: its takes, and the free allowance left
Each take is making, ready (with Patch’s private links to it, an hour long) or failed. A job none of whose takes could be made is failed, and next says why: when the image service turned down Patch’s own key it’s on Patch’s side, another try won’t help, and the game goes on with a cover of its own. With wait (seconds, up to 50), answers as soon as a take changes. If Patch missed the image service’s call, reading it asks the service.
GET
/
projects
/
{owner}
/
{slug}
/
covers
/
{job}
A covers job: its takes, and the free allowance left
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/covers/{job} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/covers/{job}', 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}/covers/{job}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": "<string>",
"kind": "make",
"state": "queued",
"shape": "<string>",
"subject": "<string>",
"instruction": "<string>",
"fixes": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"takes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shape": "wide",
"state": "making",
"url": "<string>",
"preview_url": "<string>",
"width": 123,
"height": 123,
"fixed_from": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"set_as": "<string>",
"error": "<string>"
}
],
"allowance": {
"free": true,
"note": "<string>",
"takes_per_game": 123,
"fixes_per_game": 123,
"takes_used": 123,
"fixes_used": 123,
"takes_left": 123,
"fixes_left": 123,
"stopped": "<string>"
},
"next": "<string>",
"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>"
}
}Path Parameters
Response
The job