This API is used to set aliases for specified users, and is only available for the Service Accounts verified by Weixin. API Request Format:

HTTP request method: POST (use the HTTPS protocol)



https://api.weixin.qq.com/cgi-bin/user/info/updateremark?access_token=ACCESS_TOKEN



POST data format: JSON

POST data example:
{
	"openid":"oDF3iY9ffA-hqb2vVvbr7qxf6A0Q",
	"remark":"pangzi"
}

Parameters:

Parameter Description
access_token Credential for calling API
openid User ID
remark New alias, which must be shorter than 30 characters.

Response The returned JSON packet for a successful request:

{
"errcode":0,
"errmsg":"ok" 
}

The following is an example of the JSON packet when an error occurs (in this case, the error is caused by an invalid AppID):

{"errcode":40013,"errmsg":"invalid appid"}