Classrooms
Create a classroom
Creates a new empty Classroom
.
POST
/api/classrooms
Authorization*
curl --request POST \
--url https://codecombat.com/api/classrooms \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"aceConfig": {},
"name": "<name>",
"ownerID": "<ownerid>"
}'
Authorizations
Authenticationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
aceConfigrequired
object
namerequired
string
Name of the classroom
ownerIDrequired
string
Response
204
curl --request POST \
--url https://codecombat.com/api/classrooms \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"aceConfig": {},
"name": "<name>",
"ownerID": "<ownerid>"
}'