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": "ec1e8ecd-208e-4018-87d4-4037c8be1c30",
"dashboardId": "a1839bf1-a9b0-4383-b756-0277547409c0",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "fb356225-864b-4e9f-ad98-80f6d822e402",
"dashboardIdFrom": "402fb3e7-409f-4f5f-940a-a320361e5b13",
"chartIdsForm": [
"f88fcdfa-d215-4cc4-8727-451a405b9dde",
"af81ff81-2048-4c0e-ace0-b5b2bef3ce81"
]
}
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>f88fcdfa-d215-4cc4-8727-451a405b9dde</d2p1:guid>
<d2p1:guid>af81ff81-2048-4c0e-ace0-b5b2bef3ce81</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>a1839bf1-a9b0-4383-b756-0277547409c0</DashboardId>
<DashboardIdFrom>402fb3e7-409f-4f5f-940a-a320361e5b13</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>ec1e8ecd-208e-4018-87d4-4037c8be1c30</ProjectId>
<ProjectIdFrom>fb356225-864b-4e9f-ad98-80f6d822e402</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>