- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
更新家长
POST
http://127.0.0.1/cgi-bin/school/user/update_parent
第三方应用开发/家校沟通/学生与家长管理
最后修改时间:2022-08-30 03:03:36
责任人:未设置
原文档地址:
https://open.work.weixin.qq.com/api/doc/90001/90143/92081
https://open.work.weixin.qq.com/api/doc/90000/90135/92333
请求参数
Query 参数
access_token
string
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json
parent_userid
string
必需
children
array [object {2}]
可选
student_userid
string
学生的UserID
relation
string
必需
mobile
string
家长手机号
new_parent_userid
string
可选
示例
{
"parent_userid": "zhangsan_parent_userid",
"new_parent_userid": "NEW_ID",
"mobile": "18000000000",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
},
{
"student_userid": "lisi",
"relation": "伯父"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/school/user/update_parent?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent_userid": "zhangsan_parent_userid",
"new_parent_userid": "NEW_ID",
"mobile": "18000000000",
"children": [
{
"student_userid": "zhangsan",
"relation": "爸爸"
},
{
"student_userid": "lisi",
"relation": "伯父"
}
]
}'
返回响应
🟢200成功
application/json
Body
errcode
integer <int32>
返回码
errmsg
string
可选
示例
{
"errcode": 0,
"errmsg": "string"
}

修改于 2022-08-30 03:03:36