object template.delete(array templateIds)
This method allows to delete templates. 此方法允许删除模板。
(array)
IDs of the templates to delete. (array)
需要删除的模板ID。
(object)
Returns an object containing the IDs of the deleted templates under the templateids
property. (object)
返回一个对象,包含templateids
属性中被删除模板的ID。
Delete two templates. 删除两个模板。
Request 请求:
{
"jsonrpc": "2.0",
"method": "template.delete",
"params": [
"13",
"32"
],
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response 响应:
CTemplate::delete() in frontends/php/include/classes/api/services/CTemplate.php. CTemplate::delete()方法可在frontends/php/include/classes/api/services/CTemplate.php中参考。