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": "ce1a9191-44ee-4a1d-bb36-d21ecfa1a558",
"dashboardId": "95fa46c3-1333-4526-aed6-9c4e518d6b90",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "766055a9-e236-4d5f-b000-53f7b98fc89f",
"dashboardIdFrom": "4ad0d57d-9597-488f-97e3-de2934340f13",
"chartIdsForm": [
"91246a7f-9b8f-4ca2-808d-73c5a6446520",
"dd546bc1-bc76-4bed-afb1-5ee8047d94bd"
]
}
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>91246a7f-9b8f-4ca2-808d-73c5a6446520</d2p1:guid>
<d2p1:guid>dd546bc1-bc76-4bed-afb1-5ee8047d94bd</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>95fa46c3-1333-4526-aed6-9c4e518d6b90</DashboardId>
<DashboardIdFrom>4ad0d57d-9597-488f-97e3-de2934340f13</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>ce1a9191-44ee-4a1d-bb36-d21ecfa1a558</ProjectId>
<ProjectIdFrom>766055a9-e236-4d5f-b000-53f7b98fc89f</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>