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": "ceeb40f4-8ed7-43f3-84d5-d66a2b1e772a",
"dashboardId": "6b2a4260-b444-4a18-bd06-f2dff7e28f09",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "6611a4d0-86b6-493a-810e-8db305866b77",
"dashboardIdFrom": "f1586d10-3ab2-4d21-856d-2d8701964599",
"chartIdsForm": [
"28ffd1a9-3784-4cdb-8338-65ae9e4d9fcc",
"f3ad5fc2-9cbf-4280-b07e-522f3388c4e3"
]
}
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>28ffd1a9-3784-4cdb-8338-65ae9e4d9fcc</d2p1:guid>
<d2p1:guid>f3ad5fc2-9cbf-4280-b07e-522f3388c4e3</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>6b2a4260-b444-4a18-bd06-f2dff7e28f09</DashboardId>
<DashboardIdFrom>f1586d10-3ab2-4d21-856d-2d8701964599</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>ceeb40f4-8ed7-43f3-84d5-d66a2b1e772a</ProjectId>
<ProjectIdFrom>6611a4d0-86b6-493a-810e-8db305866b77</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>