因为代码模板库的模板数量是有上限的,当达到上限或者有某个模板不再需要时,可以调用本接口删除指定的代码模板
POST https://api.q.qq.com/api/component/template/deletetemplate?component_access_token=component_access_token
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
component_access_token | String | 是 | 第三方平台令牌 component_access_token |
template_id | String | 是 | 要删除的模版 ID |
POST 数据示例:
{"template_id":"xxx"}
参数 | 类型 | 说明 |
---|---|---|
errcode | Number | 返回码 |
errmsg | String | 错误信息 |
返回结果示例:
{"errcode":0,"errmsg":"ok"}
返回码 | 说明 |
---|---|
-1 | 系统繁忙 |