POST api/template/copy/{tabType}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
tabType | string |
Required |
Body Parameters
TemplateCopyModelName | 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": "9ab21505-4c76-4cf8-a081-fd943452e620", "dashboardId": "a6f331a3-2878-44e2-8b56-13781ad92160", "name": "sample string 5", "description": "sample string 6", "projectIdFrom": "9dc7d7d9-3fb5-4981-84dd-9e5c8465a4e6", "dashboardIdFrom": "85f455c3-c57f-4de9-915b-f7957d1d9161", "chartIdsForm": [ "1aa70dc1-852c-4a67-82d9-6cced724863b", "f1b900f5-2c30-488c-8238-358f94cf5a85" ] }
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>1aa70dc1-852c-4a67-82d9-6cced724863b</d2p1:guid> <d2p1:guid>f1b900f5-2c30-488c-8238-358f94cf5a85</d2p1:guid> </ChartIdsForm> <CopyMode>1</CopyMode> <DashboardId>a6f331a3-2878-44e2-8b56-13781ad92160</DashboardId> <DashboardIdFrom>85f455c3-c57f-4de9-915b-f7957d1d9161</DashboardIdFrom> <Description>sample string 6</Description> <IsAllChart>true</IsAllChart> <Name>sample string 5</Name> <ProjectId>9ab21505-4c76-4cf8-a081-fd943452e620</ProjectId> <ProjectIdFrom>9dc7d7d9-3fb5-4981-84dd-9e5c8465a4e6</ProjectIdFrom> </TemplateCopyModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultName | 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>