Start a Patch from your finished, picked build
POST
/api/runs/{id}/patch
const url = 'https://coggs.ai/api/runs/example/patch';const options = { method: 'POST', headers: { 'Idempotency-Key': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"side":"left","prompt":"example","systems":["settings"],"referenceImage":{"sha256":"example","type":"image/png","bytes":1,"width":1,"height":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://coggs.ai/api/runs/example/patch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "side": "left", "prompt": "example", "systems": [ "settings" ], "referenceImage": { "sha256": "example", "type": "image/png", "bytes": 1, "width": 1, "height": 1 } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
side
required
string
prompt
required
string
systems
Game Systems for the new run. Omit it and the Patch keeps the systems of the run it patches. Accepted aliases, stored as the current id: local-best-scores for local-high-scores.
Array<string>
referenceImage
object
sha256
required
string
type
required
string
bytes
required
integer
width
required
integer
height
required
integer
Responses
Section titled “Responses”Start a Patch from your finished, picked build
Media typeapplication/json
The owner’s PublicRun, including patchParent when created by Patch.
object
id
required
string format: uuid
patchParent
object
run
required
string format: uuid
side
required
Example
{ "patchParent": { "side": "left" }}Invalid request.
Sign-in required.
The resource is unavailable to this caller.