POST Api/AllergySeverity/Add

Request Information

URI Parameters

None.

Body Parameters

AllergySeverityVm
NameDescriptionTypeAdditional information
AllergySeverityId

integer

None.

Name

string

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "allergySeverityId": 1,
  "name": "sample string 2",
  "isActive": true
}

text/html

Sample:
{"allergySeverityId":1,"name":"sample string 2","isActive":true}

application/xml, text/xml

Sample:
<AllergySeverityVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels">
  <AllergySeverityId>1</AllergySeverityId>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
</AllergySeverityVm>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.