Fix one take with a short instruction
curl --request POST \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/covers/takes/{take}/fix \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instruction": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({instruction: '<string>'})
};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/covers/takes/{take}/fix', 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/takes/{take}/fix"
payload = { "instruction": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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
Fix one take with a short instruction
Free: Patch pays for this, and it costs the creator nothing, up to a game’s allowance (12 takes and 4 fixes), once the game has a release (a draft is enough): Patch sponsors cover generation. Makes one new take from this one, changed as the instruction says (at most 200 characters), e.g. “Fix the hands: five fingers each, in a natural grip.” The title stays the project’s name. Answers at once with a new job.
POST
/
projects
/
{owner}
/
{slug}
/
covers
/
takes
/
{take}
/
fix
Fix one take with a short instruction
curl --request POST \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/covers/takes/{take}/fix \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instruction": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({instruction: '<string>'})
};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/covers/takes/{take}/fix', 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/takes/{take}/fix"
payload = { "instruction": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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 fix's job