On this page
templatescreen.copy
Description说明
object templatescreen.copy(object parameters)
This method allows to copy template screens to the given templates该方法允许将模板聚合图形复制到指定的模板.
Parameters参数
(object) Parameters defining the template screens to copy and the
target templates定义要复制的模板聚合图形的参数和目标模板.
| Parameter参数 T | pe类型 Des | ription说明 |
|---|---|---|
| screenIds (required) |
string/array | IDs of template screens to copy要复制的模板聚合图形的ID. |
| templateIds (required) |
string/array | IDs of templates to copy the screens to将聚合图形复制到模板的ID. |
Return values返回值
(boolean) Returns true if the copying was
successful.(boolean)如果复制成功,则返回true.
Examples范例
Copy a template screen复制模板聚合图形
Copy template screen "25" to template "30085"将模板聚合图形"25"复制到模板"30085".
Request请求:
{
"jsonrpc": "2.0",
"method": "templatescreen.copy",
"params": {
"screenIds": "25",
"templateIds": "30085"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response响应:
{
"jsonrpc": "2.0",
"result": true,
"id": 1
}
Source来源
CTemplateScreen::copy() in frontends/php/include/classes/api/services/CTemplateScreen.php.