POST api/ComplaintReason

Request Information

URI Parameters

None.

Body Parameters

ComplaintReason
NameDescriptionTypeAdditional information
ComplaintReasonId

integer

None.

Name

string

None.

IsActive

boolean

None.

ComplaintCategoryId

integer

None.

RequiresManagerApproval

boolean

None.

AddToChartReview

boolean

None.

ComplaintCategory

ComplaintCategory

None.

Request Formats

application/json, text/json

Sample:
{
  "complaintReasonId": 1,
  "name": "sample string 2",
  "isActive": true,
  "complaintCategoryId": 4,
  "requiresManagerApproval": true,
  "addToChartReview": true,
  "complaintCategory": {
    "complaintCategoryId": 1,
    "name": "sample string 2",
    "isActive": true
  }
}

text/html

Sample:
{"complaintReasonId":1,"name":"sample string 2","isActive":true,"complaintCategoryId":4,"requiresManagerApproval":true,"addToChartReview":true,"complaintCategory":{"complaintCategoryId":1,"name":"sample string 2","isActive":true}}

application/xml, text/xml

Sample:
<ComplaintReason xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.Data.Models">
  <AddToChartReview>true</AddToChartReview>
  <ComplaintCategory>
    <ComplaintCategoryId>1</ComplaintCategoryId>
    <IsActive>true</IsActive>
    <Name>sample string 2</Name>
  </ComplaintCategory>
  <ComplaintCategoryId>4</ComplaintCategoryId>
  <ComplaintReasonId>1</ComplaintReasonId>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <RequiresManagerApproval>true</RequiresManagerApproval>
</ComplaintReason>

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 'ComplaintReason'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.