Users
Put Ace Config
Set the user's aceConfig (the settings for the in-game Ace code editor), such as whether to enable autocomplete.
PUT
/api/users/{handle}/ace-config
Authorization*
curl --request PUT \
--url https://codecombat.com/api/users/{handle}/ace-config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"_id": "string",
"email": "string",
"license": {
"active": "boolean",
"ends": "string"
},
"name": "string",
"oAuthIdentities": [
{
"id": "string",
"provider": "string"
}
],
"role": "string",
"slug": "string",
"stats": {
"concepts": "object",
"gamesCompleted": "number",
"playTime": "number"
},
"subscription": {
"active": "boolean",
"ends": "string"
}
}
Authorizations
Authenticationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
handlerequired
string
The document's _id
or slug
.
Body
application/json
behaviors
boolean
controls whether things like automatic parenthesis and quote completion happens, the default value is false
language
string
only for home users, should be one of ["python", "javascript", "cpp", "lua", "coffeescript"] right now
liveCompletion
boolean
controls whether autocompletion snippets show up, the default value is true
Response
200 - application/json
_id
string
email
string
license
object
name
string
oAuthIdentities
object[]
role
string
Usually either 'teacher' or 'student'
slug
string
stats
object
subscription
object
curl --request PUT \
--url https://codecombat.com/api/users/{handle}/ace-config \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"_id": "string",
"email": "string",
"license": {
"active": "boolean",
"ends": "string"
},
"name": "string",
"oAuthIdentities": [
{
"id": "string",
"provider": "string"
}
],
"role": "string",
"slug": "string",
"stats": {
"concepts": "object",
"gamesCompleted": "number",
"playTime": "number"
},
"subscription": {
"active": "boolean",
"ends": "string"
}
}