cURL
curl --request PUT \ --url https://codecombat.com/api/classrooms/{handle}/members \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "userId": "<string>", "retMemberLimit": 123 } '
{ "_id": "<string>", "name": "<string>", "members": [ "<string>" ], "ownerID": "<string>", "description": "<string>", "courses": [ { "_id": "<string>", "levels": [ {} ], "enrolled": [ "<string>" ], "instance_id": "<string>" } ] }
Upserts a user into the classroom.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The document's _id or slug.
_id
slug
The code for joining this classroom
The _id or slug of the user to add to the class.
limit the return number of members for the classroom, the default value is 1000
The classroom with the member added.
Subset of properties listed here
Show child attributes