POST
/
users
Example
url = 'https://codecombat.com/api/users'
json = { email: 'an@email.com', name: 'Some Username', role: 'student' }
request.post({ url, json, auth })

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string
required
name
string
required
birthday
string | null
heroConfig
object | null
preferredLanguage
string | null
role
enum<string> | null

"student" or "teacher". If unset, a home user will be created, unable to join classrooms.

Available options:
student,
teacher

Response

200 - application/json

Subset of properties listed here

_id
string | null
email
string | null
license
object | null
name
string | null
oAuthIdentities
object[] | null
role
string | null

Usually either 'teacher' or 'student'

slug
string | null
stats
object | null
subscription
object | null