Classrooms

从教室中移出一个学生

DEL
从教室中移出一个学生

Path parameters

handlestringRequired

文件中的 _id 或者 slug.

Request

This endpoint expects an object.
userId
stringRequired

使用字符串 _idslug 用来从教室中移出用户.

retMemberLimit
doubleOptional
设置返回的教室中显示的学生数量, 默认值为 1000

Response

This endpoint returns an object
_id
stringOptional
name
stringOptional
members
list of stringsOptional
ownerID
stringOptional
description
stringOptional
courses
list of objectsOptional
DEL
$curl -X DELETE https://koudashijie.com/api/classrooms/%3Ahandle/members \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{
> "userId": "string"
>}'
Response
1{
2 "_id": "string",
3 "name": "string",
4 "members": [
5 "string"
6 ],
7 "ownerID": "string",
8 "description": "string",
9 "courses": [
10 {
11 "_id": "string",
12 "levels": [
13 {
14 "string": {}
15 }
16 ],
17 "enrolled": [
18 "string"
19 ],
20 "instance_id": "string"
21 }
22 ]
23}