# Delete Code Template
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
deleteTemplate
# Functional description
This interface allows you to delete a specified template. Because the number of templates in the code template library is limited, it is recommended to call this interface to delete the specified code template when the limit is reached or when a template is no longer needed. If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/wxa/deletetemplate?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. usecomponent_access_Token |
template_id | number | yes | Template to remove ID , by getting the template list interfacehttps://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatelist.html) Get. |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS Request Example
# Sample Request Data
{
"template_id": 0
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
-1 | system error | The system is busy, please wait for the developer to try again |
初始值 | 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 |
85064 | template not found | Template not found |