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": "d7d87798-b1c7-42a3-906d-0b53f9aa894c",
"dashboardId": "9246e96d-a8d3-40b0-a465-c45523a4fcfe",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "b4c23034-4b5f-4f48-8005-0649fd95033f",
"dashboardIdFrom": "4f525a34-c3cb-49a5-b740-f09c12b11eaa",
"chartIdsForm": [
"7000285c-0639-4073-9456-c5135dc62492",
"e2058a42-c2da-4237-b2dd-29966e8bab8b"
]
}
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>7000285c-0639-4073-9456-c5135dc62492</d2p1:guid>
<d2p1:guid>e2058a42-c2da-4237-b2dd-29966e8bab8b</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>9246e96d-a8d3-40b0-a465-c45523a4fcfe</DashboardId>
<DashboardIdFrom>4f525a34-c3cb-49a5-b740-f09c12b11eaa</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>d7d87798-b1c7-42a3-906d-0b53f9aa894c</ProjectId>
<ProjectIdFrom>b4c23034-4b5f-4f48-8005-0649fd95033f</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>