update states
开发中PATCH
/games/{id}/states请求参数
Path Params
id
integer
required
Example:
3
Header Params
Authorization
string
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE3MDM3MzM1NjQsImlzcyI6Imp3dCJ9.Xo_0epX1XR_SQ8_kPsEDNzUJ4Jyuns0cTdSJJQiaG8o
Body Params application/json
assign_ai_enabled
boolean
optional
commit_ai_enabled
boolean
optional
contest_script_environment_enabled
boolean
optional
private_match_enabled
boolean
optional
public_match_enabled
boolean
optional
test_match_enabled
boolean
optional
Example
{
"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
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Modified at 9 个月前