콘텐츠로 이동

Review and publish an owned build with an optional title and Game Template genre

POST
/api/runs/{id}/publish
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" }'
id
required
string
Media typeapplication/json
object
side
required
string
Allowed values: left right
genre
Any of:
string
Allowed values: Action-Adventure Card Game City Builder Fighting Platformer Racing RPG Shooter Simulation Sports
allowRemake
boolean
title

Trimmed game title, in Unicode code points. Omitting it preserves the stored title.

string
>= 1 characters <= 70 characters

Review and publish an owned build with an optional Game Template genre

Media typeapplication/json
object
state
required
string
Allowed values: private reviewing held published rejected
genre
Any of:
string
Allowed values: Action-Adventure Card Game City Builder Fighting Platformer Racing RPG Shooter Simulation Sports
checks
Array<object>
object
check
required
string
Allowed values: loads plays sounds widths network secrets
pass
required
boolean
reasons
required
Array<string>
allowRemake
boolean
playPath
required
Any of:
string format: starts_with
/^\/play\/.*/
failed
required
Array<string>
Allowed values: loads plays sounds widths network secrets founder
sound
required
Any of:
object
music
required
boolean
effects
required
boolean
title
Any of:

Trimmed game title, in Unicode code points. Omitting it preserves the stored title.

string
>= 1 characters <= 70 characters

Example

{
"state": "private",
"genre": "Action-Adventure",
"checks": [
{
"check": "loads"
}
],
"failed": [
"loads"
]
}

Invalid request.

Sign-in required.

The resource is unavailable to this caller.