Authorization: Bearer ********************
curl --location --request PATCH '/games/5/game_logic' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3MDMxNTIzMTQsImlzcyI6Imp3dCJ9.7JsOxTvEkQ07yJPX7ZqJD15y3dySUA_1am8nOLCaOTk'
{
"base_contest": {
"id": 0,
"game_id": 0,
"states": {
"assign_ai_enabled": true,
"commit_ai_enabled": true,
"contest_script_environment_enabled": true,
"private_match_enabled": true,
"public_match_enabled": true,
"test_match_enabled": true
},
"contest_assets": {
"contest_script": "string",
"sdks": [
{
"id": 0,
"name": "string",
"readme": "string",
"build_ai": {
"status": "pending"
},
"run_ai": {
"status": "pending"
}
}
]
}
},
"id": 0,
"my_privilege": "admin",
"metadata": {
"cover_url": "string",
"readme": "string",
"title": "string"
},
"game_assets": {
"game_logic": {
"build_game_logic": {
"dockerfile": "string",
"status": {
"state": "pending",
"msg": "string"
}
},
"run_game_logic": {
"dockerfile": "string",
"status": {
"state": "pending",
"msg": "string"
}
},
"status": {
"state": "pending",
"msg": "string"
}
},
"match_detail": {
"template": "string"
}
},
"admins": [
{
"avatar_url": "string",
"nickname": "string",
"username": "string"
}
]
}