POST api/Agencies

Request Information

URI Parameters

None.

Body Parameters

Agency
NameDescriptionTypeAdditional information
AgencyID

integer

None.

AgencyName

string

None.

ContactName

string

None.

Address

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

Phone

string

None.

Email

string

None.

Website

string

None.

Comment

string

None.

Active

boolean

None.

Selected

boolean

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "AgencyID": 1,
  "AgencyName": "sample string 2",
  "ContactName": "sample string 3",
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "ZipCode": "sample string 7",
  "Phone": "sample string 8",
  "Email": "sample string 9",
  "Website": "sample string 10",
  "Comment": "sample string 11",
  "Active": true,
  "Selected": true,
  "CreatedDate": "2019-06-19T13:49:23.6233329-07:00"
}

application/xml, text/xml

Sample:
<Agency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <Active>true</Active>
  <Address>sample string 4</Address>
  <AgencyID>1</AgencyID>
  <AgencyName>sample string 2</AgencyName>
  <City>sample string 5</City>
  <Comment>sample string 11</Comment>
  <ContactName>sample string 3</ContactName>
  <CreatedDate>2019-06-19T13:49:23.6233329-07:00</CreatedDate>
  <Email>sample string 9</Email>
  <Phone>sample string 8</Phone>
  <Selected>true</Selected>
  <State>sample string 6</State>
  <Website>sample string 10</Website>
  <ZipCode>sample string 7</ZipCode>
</Agency>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Agency
NameDescriptionTypeAdditional information
AgencyID

integer

None.

AgencyName

string

None.

ContactName

string

None.

Address

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

Phone

string

None.

Email

string

None.

Website

string

None.

Comment

string

None.

Active

boolean

None.

Selected

boolean

None.

CreatedDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "AgencyID": 1,
  "AgencyName": "sample string 2",
  "ContactName": "sample string 3",
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "ZipCode": "sample string 7",
  "Phone": "sample string 8",
  "Email": "sample string 9",
  "Website": "sample string 10",
  "Comment": "sample string 11",
  "Active": true,
  "Selected": true,
  "CreatedDate": "2019-06-19T13:49:23.6233329-07:00"
}

application/xml, text/xml

Sample:
<Agency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web_API.Entities">
  <Active>true</Active>
  <Address>sample string 4</Address>
  <AgencyID>1</AgencyID>
  <AgencyName>sample string 2</AgencyName>
  <City>sample string 5</City>
  <Comment>sample string 11</Comment>
  <ContactName>sample string 3</ContactName>
  <CreatedDate>2019-06-19T13:49:23.6233329-07:00</CreatedDate>
  <Email>sample string 9</Email>
  <Phone>sample string 8</Phone>
  <Selected>true</Selected>
  <State>sample string 6</State>
  <Website>sample string 10</Website>
  <ZipCode>sample string 7</ZipCode>
</Agency>