cURL
curl --request POST \ --url https://codecombat.com/api/classrooms \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "ownerID": "<string>", "aceConfig": { "language": "<string>" } }'
{ "_id": "<string>", "name": "<string>", "members": [ "<string>" ], "ownerID": "<string>", "description": "<string>", "code": "<string>", "codeCamel": "<string>", "courses": [ { "_id": "<string>", "levels": [ {} ], "enrolled": [ "<string>" ], "instance_id": "<string>" } ], "clanId": "<string>" }
Creates a new empty Classroom.
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 created classroom
Subset of properties listed here