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
섹션 제목: “Authorizations”Parameters
섹션 제목: “Parameters”Path Parameters
섹션 제목: “Path Parameters”id
required
string
Request Bodyrequired
섹션 제목: “Request Bodyrequired”Responses
섹션 제목: “Responses”200
섹션 제목: “200”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" ]}400
섹션 제목: “400”Invalid request.
401
섹션 제목: “401”Sign-in required.
404
섹션 제목: “404”The resource is unavailable to this caller.