Users

Get Classrooms By User

GET

Returns a list of Classrooms this user is in (if a student) or owns (if a teacher).

Path parameters

handlestringRequired

The document’s _id or slug.

Query parameters

retMemberLimitdoubleOptional
limit the return number of members for each classroom

Response

This endpoint returns a list of objects
_id
stringOptional
name
stringOptional
members
list of stringsOptional
ownerID
stringOptional
description
stringOptional
code
stringOptional
codeCamel
stringOptional
courses
list of objectsOptional
clanId
stringOptional
GET
$curl -G https://codecombat.com/api/users/%3Ahandle/classrooms \
> -u "<username>:<password>" \
> -d retMemberLimit=1
Response
1[
2 {
3 "_id": "string",
4 "name": "string",
5 "members": [
6 "string"
7 ],
8 "ownerID": "string",
9 "description": "string",
10 "code": "string",
11 "codeCamel": "string",
12 "courses": [
13 {
14 "_id": "string",
15 "levels": [
16 {
17 "string": {}
18 }
19 ],
20 "enrolled": [
21 "string"
22 ],
23 "instance_id": "string"
24 }
25 ],
26 "clanId": "string"
27 }
28]