# Setting the Authorizer's Option Information

This API is used to set the option information of the authorizer's Official Account/Mini Program, such as the location report option, voice recognition on/off option, and multi-customer service on/off option.

Note: The authorizer must grant authorization to set option information. For details, see the permission set description.

# Request Address

POST https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option?component_access_token=COMPONENT_ACCESS_TOKEN

# Request Parameters

Parameter Type Required Description
component_access_token string Yes Token
component_appid string Yes Third-party platform's AppID
authorizer_appid string Yes The AppID of the authorized Official Account or Mini Program
option_name string Yes Option name
option_value string Yes Option value

POST data example:

{
  "component_appid": "appid_value",
  "authorizer_appid": "auth_appid_value ",
  "option_name": "option_name_value",
  "option_value": "option_value_value"
}

# Response Parameters

Parameter Type Description
errcode number Error code
errmsg string Error message

Example of returned result

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

# Option name and value description

option_name Option Name Description option_value Option Value Description
location_report Location report option 0 No report
1 Report when entering chat
2 Report every 5 seconds
voice_recognize Voice recognition on/off option 0 Disable voice recognition
1 Enable voice recognition
customer_service Multi-customer service on/off option 0 Disable multi-customer service
1 Enable multi-customer service