POST api/Dashboard/Edit
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": "6a1a7922-1d42-40bc-b874-4cc80c11ea06",
"Name": "sample string 1",
"Description": "sample string 2",
"OwnerAndVisibilityViewModel": [
{
"ID": "7862baee-9490-42c2-8310-8c3a94d27cb4",
"DashboardId": "195d82bc-ae4d-4d32-bfeb-b6905aad7652",
"IsOwner": true,
"IsVisibilty": true,
"UserId": 5,
"UserName": "sample string 6"
},
{
"ID": "7862baee-9490-42c2-8310-8c3a94d27cb4",
"DashboardId": "195d82bc-ae4d-4d32-bfeb-b6905aad7652",
"IsOwner": true,
"IsVisibilty": true,
"UserId": 5,
"UserName": "sample string 6"
}
],
"DashboardWidgetViewModel": [
{
"ID": "fc540772-dee0-4c95-90e8-871b4134d54f",
"ConfigJson": "sample string 2",
"DisplayOrder": 3,
"DashboardId": "dc3547a5-ccee-420b-a0c7-b473e3b364cf",
"ReportId": "78887f68-5dbf-4530-9d10-14814939788b"
},
{
"ID": "fc540772-dee0-4c95-90e8-871b4134d54f",
"ConfigJson": "sample string 2",
"DisplayOrder": 3,
"DashboardId": "dc3547a5-ccee-420b-a0c7-b473e3b364cf",
"ReportId": "78887f68-5dbf-4530-9d10-14814939788b"
}
]
}
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>dc3547a5-ccee-420b-a0c7-b473e3b364cf</DashboardId>
<DisplayOrder>3</DisplayOrder>
<ID>fc540772-dee0-4c95-90e8-871b4134d54f</ID>
<ReportId>78887f68-5dbf-4530-9d10-14814939788b</ReportId>
</DashboardWidgetViewModel>
<DashboardWidgetViewModel>
<ConfigJson>sample string 2</ConfigJson>
<DashboardId>dc3547a5-ccee-420b-a0c7-b473e3b364cf</DashboardId>
<DisplayOrder>3</DisplayOrder>
<ID>fc540772-dee0-4c95-90e8-871b4134d54f</ID>
<ReportId>78887f68-5dbf-4530-9d10-14814939788b</ReportId>
</DashboardWidgetViewModel>
</DashboardWidgetViewModel>
<Description>sample string 2</Description>
<ID>6a1a7922-1d42-40bc-b874-4cc80c11ea06</ID>
<Name>sample string 1</Name>
<OwnerAndVisibilityViewModel>
<DashboardOwnerAndVisibilityViewModel>
<DashboardId>195d82bc-ae4d-4d32-bfeb-b6905aad7652</DashboardId>
<ID>7862baee-9490-42c2-8310-8c3a94d27cb4</ID>
<IsOwner>true</IsOwner>
<IsVisibilty>true</IsVisibilty>
<UserId>5</UserId>
<UserName>sample string 6</UserName>
</DashboardOwnerAndVisibilityViewModel>
<DashboardOwnerAndVisibilityViewModel>
<DashboardId>195d82bc-ae4d-4d32-bfeb-b6905aad7652</DashboardId>
<ID>7862baee-9490-42c2-8310-8c3a94d27cb4</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":"6a1a7922-1d42-40bc-b874-4cc80c11ea06","Name":"sample string 1","Description":"sample string 2","OwnerAndVisibilityViewModel":[{"ID":"7862baee-9490-42c2-8310-8c3a94d27cb4","DashboardId":"195d82bc-ae4d-4d32-bfeb-b6905aad7652","IsOwner":true,"IsVisibilty":true,"UserId":5,"UserName":"sample string 6"},{"ID":"7862baee-9490-42c2-8310-8c3a94d27cb4","DashboardId":"195d82bc-ae4d-4d32-bfeb-b6905aad7652","IsOwner":true,"IsVisibilty":true,"UserId":5,"UserName":"sample string 6"}],"DashboardWidgetViewModel":[{"ID":"fc540772-dee0-4c95-90e8-871b4134d54f","ConfigJson":"sample string 2","DisplayOrder":3,"DashboardId":"dc3547a5-ccee-420b-a0c7-b473e3b364cf","ReportId":"78887f68-5dbf-4530-9d10-14814939788b"},{"ID":"fc540772-dee0-4c95-90e8-871b4134d54f","ConfigJson":"sample string 2","DisplayOrder":3,"DashboardId":"dc3547a5-ccee-420b-a0c7-b473e3b364cf","ReportId":"78887f68-5dbf-4530-9d10-14814939788b"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.