POST api/Defendants
Request Information
URI Parameters
None.
Body Parameters
DefendantClass| Name | Description | Type | Additional information | 
|---|---|---|---|
| defendants | Collection of shortDefendant | None. | 
Request Formats
application/json, text/json
            Sample:
        
{
  "defendants": [
    {
      "id": 1,
      "propertySaleId": 2,
      "firstName": "sample string 3",
      "lastName": "sample string 4"
    },
    {
      "id": 1,
      "propertySaleId": 2,
      "firstName": "sample string 3",
      "lastName": "sample string 4"
    }
  ]
}
        application/xml, text/xml
            Sample:
        
<DefendantsController.DefendantClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HamiltonCountyPublic.Controllers">
  <defendants xmlns:d2p1="http://schemas.datacontract.org/2004/07/HamiltonCountyPublic.DataClasses">
    <d2p1:Defendants.shortDefendant>
      <d2p1:firstName>sample string 3</d2p1:firstName>
      <d2p1:id>1</d2p1:id>
      <d2p1:lastName>sample string 4</d2p1:lastName>
      <d2p1:propertySaleId>2</d2p1:propertySaleId>
    </d2p1:Defendants.shortDefendant>
    <d2p1:Defendants.shortDefendant>
      <d2p1:firstName>sample string 3</d2p1:firstName>
      <d2p1:id>1</d2p1:id>
      <d2p1:lastName>sample string 4</d2p1:lastName>
      <d2p1:propertySaleId>2</d2p1:propertySaleId>
    </d2p1:Defendants.shortDefendant>
  </defendants>
</DefendantsController.DefendantClass>
        application/x-www-form-urlencoded
            Sample:
    
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information | 
|---|---|---|---|
| Version | Version | None. | |
| Content | HttpContent | None. | |
| StatusCode | HttpStatusCode | None. | |
| ReasonPhrase | string | None. | |
| Headers | Collection of Object | None. | |
| RequestMessage | HttpRequestMessage | None. | |
| IsSuccessStatusCode | boolean | None. |