POST api/Dashboard/Create
Request Information
URI Parameters
None.
Body Parameters
DashboardViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| OwnerAndVisibilityViewModel | Collection of DashboardOwnerAndVisibilityViewModel |
None. |
|
| DashboardWidgetViewModel | Collection of DashboardWidgetViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": "26c190b1-9509-4e18-adcc-67941eadb927",
"Name": "sample string 1",
"Description": "sample string 2",
"OwnerAndVisibilityViewModel": [
{
"ID": "a2b3ec74-8607-4cf8-abf4-fd963e3b7a16",
"DashboardId": "82e400da-4324-44d4-afee-239417d80097",
"IsOwner": true,
"IsVisibilty": true,
"UserId": 5,
"UserName": "sample string 6"
},
{
"ID": "a2b3ec74-8607-4cf8-abf4-fd963e3b7a16",
"DashboardId": "82e400da-4324-44d4-afee-239417d80097",
"IsOwner": true,
"IsVisibilty": true,
"UserId": 5,
"UserName": "sample string 6"
}
],
"DashboardWidgetViewModel": [
{
"ID": "c0e2280e-95ea-4975-b212-c4d1493691e1",
"ConfigJson": "sample string 2",
"DisplayOrder": 3,
"DashboardId": "8df6fd72-8e55-4b30-bb4b-7f346f2f80a1",
"ReportId": "efb1244f-9dc5-4ffe-b843-ef17fd02326f"
},
{
"ID": "c0e2280e-95ea-4975-b212-c4d1493691e1",
"ConfigJson": "sample string 2",
"DisplayOrder": 3,
"DashboardId": "8df6fd72-8e55-4b30-bb4b-7f346f2f80a1",
"ReportId": "efb1244f-9dc5-4ffe-b843-ef17fd02326f"
}
]
}
application/xml, text/xml
Sample:
<DashboardViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
<DashboardWidgetViewModel>
<DashboardWidgetViewModel>
<ConfigJson>sample string 2</ConfigJson>
<DashboardId>8df6fd72-8e55-4b30-bb4b-7f346f2f80a1</DashboardId>
<DisplayOrder>3</DisplayOrder>
<ID>c0e2280e-95ea-4975-b212-c4d1493691e1</ID>
<ReportId>efb1244f-9dc5-4ffe-b843-ef17fd02326f</ReportId>
</DashboardWidgetViewModel>
<DashboardWidgetViewModel>
<ConfigJson>sample string 2</ConfigJson>
<DashboardId>8df6fd72-8e55-4b30-bb4b-7f346f2f80a1</DashboardId>
<DisplayOrder>3</DisplayOrder>
<ID>c0e2280e-95ea-4975-b212-c4d1493691e1</ID>
<ReportId>efb1244f-9dc5-4ffe-b843-ef17fd02326f</ReportId>
</DashboardWidgetViewModel>
</DashboardWidgetViewModel>
<Description>sample string 2</Description>
<ID>26c190b1-9509-4e18-adcc-67941eadb927</ID>
<Name>sample string 1</Name>
<OwnerAndVisibilityViewModel>
<DashboardOwnerAndVisibilityViewModel>
<DashboardId>82e400da-4324-44d4-afee-239417d80097</DashboardId>
<ID>a2b3ec74-8607-4cf8-abf4-fd963e3b7a16</ID>
<IsOwner>true</IsOwner>
<IsVisibilty>true</IsVisibilty>
<UserId>5</UserId>
<UserName>sample string 6</UserName>
</DashboardOwnerAndVisibilityViewModel>
<DashboardOwnerAndVisibilityViewModel>
<DashboardId>82e400da-4324-44d4-afee-239417d80097</DashboardId>
<ID>a2b3ec74-8607-4cf8-abf4-fd963e3b7a16</ID>
<IsOwner>true</IsOwner>
<IsVisibilty>true</IsVisibilty>
<UserId>5</UserId>
<UserName>sample string 6</UserName>
</DashboardOwnerAndVisibilityViewModel>
</OwnerAndVisibilityViewModel>
</DashboardViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"ID":"26c190b1-9509-4e18-adcc-67941eadb927","Name":"sample string 1","Description":"sample string 2","OwnerAndVisibilityViewModel":[{"ID":"a2b3ec74-8607-4cf8-abf4-fd963e3b7a16","DashboardId":"82e400da-4324-44d4-afee-239417d80097","IsOwner":true,"IsVisibilty":true,"UserId":5,"UserName":"sample string 6"},{"ID":"a2b3ec74-8607-4cf8-abf4-fd963e3b7a16","DashboardId":"82e400da-4324-44d4-afee-239417d80097","IsOwner":true,"IsVisibilty":true,"UserId":5,"UserName":"sample string 6"}],"DashboardWidgetViewModel":[{"ID":"c0e2280e-95ea-4975-b212-c4d1493691e1","ConfigJson":"sample string 2","DisplayOrder":3,"DashboardId":"8df6fd72-8e55-4b30-bb4b-7f346f2f80a1","ReportId":"efb1244f-9dc5-4ffe-b843-ef17fd02326f"},{"ID":"c0e2280e-95ea-4975-b212-c4d1493691e1","ConfigJson":"sample string 2","DisplayOrder":3,"DashboardId":"8df6fd72-8e55-4b30-bb4b-7f346f2f80a1","ReportId":"efb1244f-9dc5-4ffe-b843-ef17fd02326f"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.