# User unbundling

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

weDataUnbindUser

# Functional description

User unbundling

# Note

  • This interface will unbind the uid and WeChat ID, and delete the we analysis membership of the WeChat ID.
  • If the unbind object is an administrator or data administrator, the unbind operation is performed, and its we analysis membership is not deleted

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wedata/wedata_unbind_user?access_token=ACCESS_TOKEN 

# Third Party Invocation

  • The calling method and parameters are the same as HTTPS, only the calling token is different

  • The permission set id to which this interface belongs is: 18

  • After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token
uid string yes The unique identification of the user in the service provider system, which can be a mobile phone number, email address, employee ID Wait a minute.

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message

# Call Example

Example Dxplaination: HTTPS Request Example

# Sample Request Data


{
	"uid": "test"
} 

# Return Data Example


{
     "errcode": 0,
     "errmsg": "OK",
     "info": [
          {
               "uid": "test",
               "create_time": 1663728070,
               "update_time": 1663728119,
               "nickname": "xxx"
               "head_url": "http://wx.qlogo.cn/mmhead/xxxxxxxxxxxxxxxxxxxxxxx",
               "is_bind": 1,
               "perm": [
                    {
                         "perm_id": "10001",
                         "name": "Full Station Read Only Permissions,"
                         "desc": " Have "view" permissions for all modules. But do not have permission to "create," "edit," "download," "delete" "
                    }
               ]
          },
          {
               "uid": "example",
               "create_time": 1663664719,
               "update_time": 1663664941,
               "is_bind": 0
          }
     ]
} 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again