POST api/IncidentType/PostAddIncidentType

Request Information

URI Parameters

None.

Body Parameters

IncidentTypeModel
NameDescriptionTypeAdditional information
IncidentTypeID

integer

None.

IncidentType

string

Required

String length: inclusive between 0 and 50

IsActive

boolean

Required

UserID

string

Required

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "IncidentTypeID": 1,
  "IncidentType": "sample string 2",
  "IsActive": true,
  "UserID": "sample string 4"
}

application/xml, text/xml

Sample:
<IncidentTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GOPWebAPI.Models.Incident_Report_Models">
  <IncidentType>sample string 2</IncidentType>
  <IncidentTypeID>1</IncidentTypeID>
  <IsActive>true</IsActive>
  <UserID>sample string 4</UserID>
</IncidentTypeModel>

multipart/form-data

Sample:
<IncidentTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GOPWebAPI.Models.Incident_Report_Models"><IncidentType>sample string 2</IncidentType><IncidentTypeID>1</IncidentTypeID><IsActive>true</IsActive><UserID>sample string 4</UserID></IncidentTypeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.