POST api/template/projCopy/{fromId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| fromId | globally unique identifier |
Required |
Body Parameters
ProjectModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Show | boolean |
None. |
|
| Order | decimal number |
None. |
|
| Dashboards | Collection of DashModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"projectId": "a3f7e2db-d4d5-458b-9d50-8024c152d6ae",
"name": "sample string 2",
"show": true,
"order": 4.0,
"dashboards": [
{
"projectId": "ab0f4a15-0b0f-45ca-ac3d-8dfb48788e07",
"dashboardId": "ff23de77-fd01-4bef-bfee-376d0bfb8ae4",
"name": "sample string 3",
"description": "sample string 4",
"show": true,
"order": 6.0
},
{
"projectId": "ab0f4a15-0b0f-45ca-ac3d-8dfb48788e07",
"dashboardId": "ff23de77-fd01-4bef-bfee-376d0bfb8ae4",
"name": "sample string 3",
"description": "sample string 4",
"show": true,
"order": 6.0
}
]
}
application/xml, text/xml
Sample:
<ProjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models">
<Dashboards>
<DashModel>
<DashboardId>ff23de77-fd01-4bef-bfee-376d0bfb8ae4</DashboardId>
<Description>sample string 4</Description>
<Name>sample string 3</Name>
<Order>6</Order>
<ProjectId>ab0f4a15-0b0f-45ca-ac3d-8dfb48788e07</ProjectId>
<Show>true</Show>
</DashModel>
<DashModel>
<DashboardId>ff23de77-fd01-4bef-bfee-376d0bfb8ae4</DashboardId>
<Description>sample string 4</Description>
<Name>sample string 3</Name>
<Order>6</Order>
<ProjectId>ab0f4a15-0b0f-45ca-ac3d-8dfb48788e07</ProjectId>
<Show>true</Show>
</DashModel>
</Dashboards>
<Name>sample string 2</Name>
<Order>4</Order>
<ProjectId>a3f7e2db-d4d5-458b-9d50-8024c152d6ae</ProjectId>
<Show>true</Show>
</ProjectModel>
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>