4. Third Party APP Update Unique Studio Info - UniqueStudio/open-platform GitHub Wiki

4.1 Update User Info

Update users info.

URL : https://open.hustunique.com/weixin/user/:userID

Method : PATCH

Auth required : AccessKey

Payload

Content example

All of the fields in json are optional

"extattr" field rule to mark join time: "加入时间":"2016秋招"

{
    "name": "李四", 
    "department": [
        1
    ], 
    "order": [
        10
    ], 
    "position": "后台工程师", 
    "mobile": "15913215421", 
    "gender": "1", 
    "email": "[email protected]", 
    "isleader": 0, 
    "enable": 1, 
    "avatar_mediaid": "2-G6nrLmr5EC3MNb_-zL1dDdzkd0p7cNliYu9V5w7o8K0", 
    "telephone": "020-123456", 
    "alias": "jackzhang", 
    "extattr": {
        "attrs": [
            {
                "name": "加入时间", 
                "value": "2016秋招"
            }, 
            {
                "name": "卡号", 
                "value": "1234567234"
            }
        ]
    }, 
    "external_position": "工程师", 
    "external_profile": {
        "external_attr": [
            {
                "type": 0, 
                "name": "文本名称", 
                "text": {
                    "value": "文本"
                }
            }, 
            {
                "type": 1, 
                "name": "网页名称", 
                "web": {
                    "url": "http://www.test.com", 
                    "title": "标题"
                }
            }, 
            {
                "type": 2, 
                "name": "测试app", 
                "miniprogram": {
                    "appid": "wx8bd80126147df384", 
                    "pagepath": "/index", 
                    "title": "my miniprogram"
                }
            }
        ]
    }
}

Success Response

Code : 200 OK

Content example

{
	"code": 200,
	"message": "OK"
}