POST api/ComplaintTypeDetails/CreateComplaintType

Request Information

URI Parameters

None.

Body Parameters

ComplaintTypeModel
NameDescriptionTypeAdditional information
cmplnt_id

integer

None.

cmplnt_code

string

None.

cmplnt_name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cmplnt_id": 1,
  "cmplnt_code": "sample string 2",
  "cmplnt_name": "sample string 3"
}

application/xml, text/xml

Sample:
<ComplaintTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <cmplnt_code>sample string 2</cmplnt_code>
  <cmplnt_id>1</cmplnt_id>
  <cmplnt_name>sample string 3</cmplnt_name>
</ComplaintTypeModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.