当参数字段超过长度限制,那么整个请求会被拦掉。
注意,每个班级下学生总数不能超过3万个。建议保证创建department对应的部门和创建成员是串行化处理。
{
"students":[
{
"student_userid": "zhangsan",
"mobile": "10000000000",
"new_student_userid":"zhangsan_new",
"name": "张三",
"department": [1, 2],
},
{
"student_userid": "lisi",
"mobile": "10000000000",
"name": "李四",
"department": [3, 4]
}
]
}curl --location -g --request POST '/cgi-bin/school/user/batch_update_student?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"students":[
{
"student_userid": "zhangsan",
"mobile": "10000000000",
"new_student_userid":"zhangsan_new",
"name": "张三",
"department": [1, 2],
},
{
"student_userid": "lisi",
"mobile": "10000000000",
"name": "李四",
"department": [3, 4]
}
]
}'{
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan",
"result_list": [
{
"student_userid": "zhangsan",
"errcode": 1,
"errmsg": "invalid student_userid: zhangsan"
}
]
}