POST api/template/copy/{tabType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| tabType | string |
Required |
Body Parameters
TemplateCopyModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CopyMode | integer |
None. |
|
| IsAllChart | boolean |
None. |
|
| ProjectId | globally unique identifier |
None. |
|
| DashboardId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| ProjectIdFrom | globally unique identifier |
None. |
|
| DashboardIdFrom | globally unique identifier |
None. |
|
| ChartIdsForm | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"copyMode": 1,
"isAllChart": true,
"projectId": "ee2ef4c1-3b20-4bb1-a292-377bd4d18847",
"dashboardId": "cf142057-f382-4b38-8a0f-7d2caa099f40",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "cf7ac830-e699-4a8c-8119-62a94857448b",
"dashboardIdFrom": "a2a32f65-2967-49cc-b31f-46dcb8179243",
"chartIdsForm": [
"8b3786d8-7437-410b-a196-d27ed39fcf20",
"f7067024-f6a3-42ab-9bb8-faca180ffdc7"
]
}
application/xml, text/xml
Sample:
<TemplateCopyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models">
<ChartIdsForm xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>8b3786d8-7437-410b-a196-d27ed39fcf20</d2p1:guid>
<d2p1:guid>f7067024-f6a3-42ab-9bb8-faca180ffdc7</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>cf142057-f382-4b38-8a0f-7d2caa099f40</DashboardId>
<DashboardIdFrom>a2a32f65-2967-49cc-b31f-46dcb8179243</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>ee2ef4c1-3b20-4bb1-a292-377bd4d18847</ProjectId>
<ProjectIdFrom>cf7ac830-e699-4a8c-8119-62a94857448b</ProjectIdFrom>
</TemplateCopyModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | ApiResultStatus |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "success",
"data": {},
"message": "sample string 2",
"code": 1
}
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Code>1</Code> <Data /> <Message>sample string 2</Message> <Status>Success</Status> </ApiResult>