PUT

/api/classrooms/{classroomHandle}/courses/{courseHandle}/remove-enrolled

Authorization*
curl --request PUT \
  --url https://codecombat.com/api/classrooms/{classroomHandle}/courses/{courseHandle}/remove-enrolled \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "<userid>"
}'
{
  "_id": "string",
  "courses": [
    {
      "_id": "string",
      "enrolled": [
        "string"
      ],
      "instance_id": "string",
      "levels": [
        "object"
      ]
    }
  ],
  "description": "string",
  "members": [
    "string"
  ],
  "name": "string",
  "ownerID": "string"
}

Authorizations

Authenticationheaderrequired
string

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

Path Parameters

classroomHandlerequired
string

The classroom's _id.

courseHandlerequired
string

The course's _id.

Query Parameters

retMemberLimit
number

limit the return number of members for the classroom, the default value is 1000

Body

application/json
userIdrequired
string

Response

200 - application/json
_id
string
courses
object[]
description
string
members
string[]
name
string
ownerID
string