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参数 Type类型 Description说明
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请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "templatescreen.copy",
  4. "params": {
  5. "screenIds": "25",
  6. "templateIds": "30085"
  7. },
  8. "auth": "038e1d7b1735c6a5436ee9eae095879e",
  9. "id": 1
  10. }

Response响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": true,
  4. "id": 1
  5. }

Source来源

CTemplateScreen::copy() in frontends/php/include/classes/api/services/CTemplateScreen.php.