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": "8ff8f595-8103-46ee-b28e-a1fdd73fccc6",
"dashboardId": "46e25969-811f-4aa6-985f-29d473b2d23e",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "ab9a4909-3d18-403c-8ea5-1a9f3931a5e8",
"dashboardIdFrom": "b4e9fa4f-a917-44fd-9d1b-c7ed9c4ccfc4",
"chartIdsForm": [
"9b8bac85-1d4a-45ff-ad46-5d15249f3a72",
"2b6f69fd-89b1-4b63-81ca-a5d03a933d34"
]
}
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>9b8bac85-1d4a-45ff-ad46-5d15249f3a72</d2p1:guid>
<d2p1:guid>2b6f69fd-89b1-4b63-81ca-a5d03a933d34</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>46e25969-811f-4aa6-985f-29d473b2d23e</DashboardId>
<DashboardIdFrom>b4e9fa4f-a917-44fd-9d1b-c7ed9c4ccfc4</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>8ff8f595-8103-46ee-b28e-a1fdd73fccc6</ProjectId>
<ProjectIdFrom>ab9a4909-3d18-403c-8ea5-1a9f3931a5e8</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>