批量创建家长
POST
/cgi-bin/school/user/batch_create_parent
服务端API第三方应用开发企业内部开发
原文档地址:
https://open.work.weixin.qq.com/api/doc/90001/90143/92078
https://open.work.weixin.qq.com/api/doc/90000/90135/92334
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_parent?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"parents":[{"parent_userid":"zhangsan_parent_userid","mobile":"18000000000","to_invite":false,"children":[{"student_userid":"zhangsan","relation":"爸爸"},{"student_userid":"lisi","relation":"伯父"}]},{"parent_userid":"lisi_parent_userid","mobile":"18000000001","children":[{"student_userid":"lisi","relation":"爸爸"},{"student_userid":"zhangsan","relation":"伯父"}]}]}'
响应示例响应示例
{
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid",
"result_list": [
{
"parent_userid": "lisi_parent_userid",
"errcode": 1,
"errmsg": "invalid parent_userid: lisi_parent_userid"
}
]
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
返回响应
修改于 2022-01-14 04:25:45