# Modify the name of the trial Mini Program

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

modifyBetaMiniprogramNickName

# Functional description

This interface is used to modify the trial Mini Program name. If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Note

  • The interface is only applicable to the trial Mini Program, not to the ordinary Mini Program that has completed the certification, that is, it can not be called after the normalization.
  • After the Mini Program turns positive, the service provider needs to callsetnicknameThe interface is re-named because the "Trial Mini Program" suffix is not automatically removed after certification.
  • If you need to modify the avatar of the trial Mini Program, callSetting AvatarMake changes, and do not take up the number of official Mini Program changes to the avatar quota.

# Calling mode

# HTTPS call


初始值 https://api.weixin.qq.com/wxa/setbetaweappnickname?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: 81

  • 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. usecomponent_access_TokenOr useauthorizer_access_Token
name string yes Mini Program name, nickname semi-automatic setting, mandatory suffix "experience Mini Program." And this parameter will be checked for keywords, and an error will be reported if the brand keyword is hit. If you encounter brand customers to use a trial Mini Program, it is recommended that users change their name first, and then modify it into a brand name after certification.

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
  "name": "Roasted Chicken on Wheat"
} 

# Return Data Example


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

# Error code

Error code Error code Solutions
40001 invalid credential  access_Token isinvalid or not latest Obtain access_Token time AppSecret Error, or access_Token Invalid. Please take the developer more seriously. AppSecret Of the correctness, or to see if you are working for the appropriate Official Account message template Call interface
86011 The name hit the keywordLike mini programs, WeChat, Tencent and other well-known brand keywords. Please change your name and try again. Please change your name and try again.
91020 Mini Program registration type is incorrect, this interface is only suitable for trial Mini Program calls Mini Program registration type is incorrect, this interface is only suitable for trial Mini Program calls