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": "5df0ad40-220a-4ce8-8013-5a41b6ced641",
"dashboardId": "df6024e8-fae3-4775-b579-45762456a4cf",
"name": "sample string 5",
"description": "sample string 6",
"projectIdFrom": "f6f01b17-da3c-4d00-a58a-b1ef679ae042",
"dashboardIdFrom": "792e12a0-e14f-4555-80a8-e808fd9c89dd",
"chartIdsForm": [
"d91a39eb-b165-4e33-a215-d97f33339024",
"d54e10c5-6062-4f36-abec-c464d2a902ea"
]
}
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>d91a39eb-b165-4e33-a215-d97f33339024</d2p1:guid>
<d2p1:guid>d54e10c5-6062-4f36-abec-c464d2a902ea</d2p1:guid>
</ChartIdsForm>
<CopyMode>1</CopyMode>
<DashboardId>df6024e8-fae3-4775-b579-45762456a4cf</DashboardId>
<DashboardIdFrom>792e12a0-e14f-4555-80a8-e808fd9c89dd</DashboardIdFrom>
<Description>sample string 6</Description>
<IsAllChart>true</IsAllChart>
<Name>sample string 5</Name>
<ProjectId>5df0ad40-220a-4ce8-8013-5a41b6ced641</ProjectId>
<ProjectIdFrom>f6f01b17-da3c-4d00-a58a-b1ef679ae042</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>