Review and publish an owned build with an optional title and Game Template genre
POST
/api/runs/{id}/publish
const url = 'https://coggs.ai/api/runs/example/publish';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"side":"left","genre":"Action-Adventure","allowRemake":true,"title":"example"}'};
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/publish \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "side": "left", "genre": "Action-Adventure", "allowRemake": true, "title": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Review and publish an owned build with an optional Game Template genre
Media typeapplication/json
object
state
required
string
checks
Array<object>
object
check
required
string
pass
required
boolean
reasons
required
Array<string>
allowRemake
boolean
failed
required
Array<string>
Example
{ "state": "private", "genre": "Action-Adventure", "checks": [ { "check": "loads" } ], "failed": [ "loads" ]}Invalid request.
Sign-in required.
The resource is unavailable to this caller.