POST api/dashboard-rights/save

Request Information

URI Parameters

None.

Body Parameters

SaveDashboardRightsRequestModel
NameDescriptionTypeAdditional information
UserTypeCode

string

None.

Dashboards

Collection of DashboardItemModel

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserTypeCode": "sample string 1",
  "Dashboards": [
    {
      "DashboardID": 1,
      "DashboardName": "sample string 2"
    },
    {
      "DashboardID": 1,
      "DashboardName": "sample string 2"
    }
  ],
  "UserID": 2
}

application/xml, text/xml

Sample:
<SaveDashboardRightsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Dashboards>
    <DashboardItemModel>
      <DashboardID>1</DashboardID>
      <DashboardName>sample string 2</DashboardName>
    </DashboardItemModel>
    <DashboardItemModel>
      <DashboardID>1</DashboardID>
      <DashboardName>sample string 2</DashboardName>
    </DashboardItemModel>
  </Dashboards>
  <UserID>2</UserID>
  <UserTypeCode>sample string 1</UserTypeCode>
</SaveDashboardRightsRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveDashboardRightsRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.