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)

POST data format: JSON

POST data example:


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:


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"}