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": "3e720115-327e-4855-9630-621cb1f4ac9e",
"dashboardId": "90c45dd1-4a67-4a84-ba4a-ece77d178f9a",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "9b94ad68-0d45-4bef-a201-866c4563a6b7",
"dashboardIdFrom": "51ec2a51-1409-457e-853b-4a8202f5d20f",
"chartIdsForm": [
"1e91c603-46ee-409d-814b-2785e4fd3d07",
"a13ba854-23fc-4586-bf9c-5a48469498de"
]
}
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>1e91c603-46ee-409d-814b-2785e4fd3d07</d2p1:guid>
<d2p1:guid>a13ba854-23fc-4586-bf9c-5a48469498de</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>90c45dd1-4a67-4a84-ba4a-ece77d178f9a</DashboardId>
<DashboardIdFrom>51ec2a51-1409-457e-853b-4a8202f5d20f</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>3e720115-327e-4855-9630-621cb1f4ac9e</ProjectId>
<ProjectIdFrom>9b94ad68-0d45-4bef-a201-866c4563a6b7</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>