This method allows to update existing templates. 此方法允许更新现有模板。
(object/array)
Template properties to be updated. (object/array)
需要被更新的模板属性。
(object)
Returns an object containing the IDs of the updated templates under the templateids
property. (object)
返回一个对象,此对象包含在属性中已更新模板的ID。
Renaming a template 重命名模板
Rename the template to “Template OS Linux”. 将模板重命名为“Template OS Linux”。
Response 响应:
{
"jsonrpc": "2.0",
"result": {
"10086"
]
},
CTemplate::update() in frontends/php/include/classes/api/services/CTemplate.php. CTemplate::update()方法可在frontends/php/include/classes/api/services/CTemplate.php中参考。