PUT api/Contacts

Request Information

URI Parameters

None.

Body Parameters

shortContact
NameDescriptionTypeAdditional information
id

integer

None.

orgName

string

None.

orgContact

string

None.

address1

string

None.

address2

string

None.

city

string

None.

state

integer

None.

townshipNotificationRules

Collection of ShortNotificationRule

None.

zip

string

None.

phone

string

None.

email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "orgName": "sample string 2",
  "orgContact": "sample string 3",
  "address1": "sample string 4",
  "address2": "sample string 5",
  "city": "sample string 6",
  "state": 1,
  "townshipNotificationRules": [
    {
      "id": 1,
      "contactId": 2,
      "name": "sample string 3"
    },
    {
      "id": 1,
      "contactId": 2,
      "name": "sample string 3"
    }
  ],
  "zip": "sample string 7",
  "phone": "sample string 8",
  "email": "sample string 9"
}

application/xml, text/xml

Sample:
<Contacts.shortContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HamiltonCountyPublic.DataClasses">
  <address1>sample string 4</address1>
  <address2>sample string 5</address2>
  <city>sample string 6</city>
  <email>sample string 9</email>
  <id>1</id>
  <orgContact>sample string 3</orgContact>
  <orgName>sample string 2</orgName>
  <phone>sample string 8</phone>
  <state>1</state>
  <townshipNotificationRules>
    <NotificationRules.ShortNotificationRule>
      <contactId>2</contactId>
      <id>1</id>
      <name>sample string 3</name>
    </NotificationRules.ShortNotificationRule>
    <NotificationRules.ShortNotificationRule>
      <contactId>2</contactId>
      <id>1</id>
      <name>sample string 3</name>
    </NotificationRules.ShortNotificationRule>
  </townshipNotificationRules>
  <zip>sample string 7</zip>
</Contacts.shortContact>

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.