[comment]: # translation:outdated

[comment]: # ({72868de8-72868de8})
# templatescreen.copy

[comment]: # ({/72868de8-72868de8})

[comment]: # ({76799d20-76799d20})
### Description

`object templatescreen.copy(object parameters)`

This method allows to copy template screens to the given templates.

[comment]: # ({/76799d20-76799d20})

[comment]: # ({0c857f5e-0c857f5e})
### Parameters

`(object)` Parameters defining the template screens to copy and the
target templates.

|Parameter|[Type](/manual/api/reference_commentary#data_types)|Description|
|---------|---------------------------------------------------|-----------|
|**screenIds**<br>(required)|string/array|IDs of template screens to copy.|
|**templateIds**<br>(required)|string/array|IDs of templates to copy the screens to.|

[comment]: # ({/0c857f5e-0c857f5e})

[comment]: # ({b8760eee-b8760eee})
### Return values

`(boolean)` Returns `true` if the copying was successful.

[comment]: # ({/b8760eee-b8760eee})

[comment]: # ({b41637d2-b41637d2})
### Examples

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({0ef88c00-0ef88c00})
#### Copy a template screen

Copy template screen "25" to template "30085".

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "templatescreen.copy",
    "params": {
        "screenIds": "25",
        "templateIds": "30085"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": true,
    "id": 1
}
```

[comment]: # ({/0ef88c00-0ef88c00})

[comment]: # ({1e14219e-1e14219e})
### Source

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

[comment]: # ({/1e14219e-1e14219e})
