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": "bdb1d387-9864-42a3-901e-636805334139",
"dashboardId": "05e520d3-561d-488d-b603-ffb4aa9d73c4",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "6e7ceb56-c257-4ac3-93e5-412cc92d6f4a",
"dashboardIdFrom": "763fd3d4-4874-4b4a-b89c-785dfaad9e3a",
"chartIdsForm": [
"cb5ebbcf-f5f2-40cd-b8de-8564e5d777d3",
"dd20532b-df08-493b-9ded-d62f97719f28"
]
}
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>cb5ebbcf-f5f2-40cd-b8de-8564e5d777d3</d2p1:guid>
<d2p1:guid>dd20532b-df08-493b-9ded-d62f97719f28</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>05e520d3-561d-488d-b603-ffb4aa9d73c4</DashboardId>
<DashboardIdFrom>763fd3d4-4874-4b4a-b89c-785dfaad9e3a</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>bdb1d387-9864-42a3-901e-636805334139</ProjectId>
<ProjectIdFrom>6e7ceb56-c257-4ac3-93e5-412cc92d6f4a</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>