PUT
/
users
/
{handle}
/
ace-config
curl --request PUT \
  --url https://codecombat.com/api/users/{handle}/ace-config \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "liveCompletion": true,
  "behaviors": true,
  "language": "<string>"
}'
{
  "_id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "role": "<string>",
  "stats": {
    "gamesCompleted": 123,
    "concepts": {},
    "playTime": 123
  },
  "oAuthIdentities": [
    {
      "provider": "<string>",
      "id": "<string>"
    }
  ],
  "subscription": {
    "ends": "<string>",
    "active": true
  },
  "license": {
    "ends": "<string>",
    "active": true
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

handle
string
required

The document's _id or slug.

Body

application/json
liveCompletion
boolean | null

controls whether autocompletion snippets show up, the default value is true

behaviors
boolean | null

controls whether things like automatic parenthesis and quote completion happens, the default value is false

language
string | null

only for home users, should be one of ["python", "javascript", "cpp", "lua", "coffeescript"] right now

Response

200 - application/json
The affected user

Subset of properties listed here

_id
string | null
email
string | null
name
string | null
slug
string | null
role
string | null

Usually either 'teacher' or 'student'

stats
object | null
oAuthIdentities
object[] | null
subscription
object | null
license
object | null