POST api/PatientAddresses

Request Information

URI Parameters

None.

Body Parameters

PatientAddress
NameDescriptionTypeAdditional information
ID

integer

None.

CPI

string

None.

DIV_ID

integer

None.

ADDRESS_TYPE

integer

None.

ADDRESS_NAME

string

None.

STREET

string

None.

APT

string

None.

CITY

string

None.

STATE

string

None.

ZIP

string

None.

COUNTRY

string

None.

DEFAULT_ADDRESS

boolean

None.

OLD

integer

None.

Type

AddressType

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CPI": "sample string 2",
  "DIV_ID": 3,
  "ADDRESS_TYPE": 4,
  "ADDRESS_NAME": "sample string 5",
  "STREET": "sample string 6",
  "APT": "sample string 7",
  "CITY": "sample string 8",
  "STATE": "sample string 9",
  "ZIP": "sample string 10",
  "COUNTRY": "sample string 11",
  "DEFAULT_ADDRESS": true,
  "OLD": 1,
  "Type": {
    "ATYPE_ID": 1,
    "TYPE_NAME": "sample string 2",
    "USAGE": 1,
    "DIV_ID": 3,
    "OLD": 1
  }
}

application/octet-stream

Sample:
{"ID":1,"CPI":"sample string 2","DIV_ID":3,"ADDRESS_TYPE":4,"ADDRESS_NAME":"sample string 5","STREET":"sample string 6","APT":"sample string 7","CITY":"sample string 8","STATE":"sample string 9","ZIP":"sample string 10","COUNTRY":"sample string 11","DEFAULT_ADDRESS":true,"OLD":1,"Type":{"ATYPE_ID":1,"TYPE_NAME":"sample string 2","USAGE":1,"DIV_ID":3,"OLD":1}}

application/xml, text/xml

Sample:
<PatientAddress xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <CPI>sample string 2</CPI>
  <DIV_ID>3</DIV_ID>
  <ADDRESS_TYPE>4</ADDRESS_TYPE>
  <ADDRESS_NAME>sample string 5</ADDRESS_NAME>
  <STREET>sample string 6</STREET>
  <APT>sample string 7</APT>
  <CITY>sample string 8</CITY>
  <STATE>sample string 9</STATE>
  <ZIP>sample string 10</ZIP>
  <COUNTRY>sample string 11</COUNTRY>
  <DEFAULT_ADDRESS>true</DEFAULT_ADDRESS>
  <OLD>1</OLD>
  <Type>
    <ATYPE_ID>1</ATYPE_ID>
    <TYPE_NAME>sample string 2</TYPE_NAME>
    <USAGE>1</USAGE>
    <DIV_ID>3</DIV_ID>
    <OLD>1</OLD>
  </Type>
</PatientAddress>

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

Response Information

Resource Description

PatientAddress
NameDescriptionTypeAdditional information
ID

integer

None.

CPI

string

None.

DIV_ID

integer

None.

ADDRESS_TYPE

integer

None.

ADDRESS_NAME

string

None.

STREET

string

None.

APT

string

None.

CITY

string

None.

STATE

string

None.

ZIP

string

None.

COUNTRY

string

None.

DEFAULT_ADDRESS

boolean

None.

OLD

integer

None.

Type

AddressType

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CPI": "sample string 2",
  "DIV_ID": 3,
  "ADDRESS_TYPE": 4,
  "ADDRESS_NAME": "sample string 5",
  "STREET": "sample string 6",
  "APT": "sample string 7",
  "CITY": "sample string 8",
  "STATE": "sample string 9",
  "ZIP": "sample string 10",
  "COUNTRY": "sample string 11",
  "DEFAULT_ADDRESS": true,
  "OLD": 1,
  "Type": {
    "ATYPE_ID": 1,
    "TYPE_NAME": "sample string 2",
    "USAGE": 1,
    "DIV_ID": 3,
    "OLD": 1
  }
}

application/octet-stream

Sample:
{"ID":1,"CPI":"sample string 2","DIV_ID":3,"ADDRESS_TYPE":4,"ADDRESS_NAME":"sample string 5","STREET":"sample string 6","APT":"sample string 7","CITY":"sample string 8","STATE":"sample string 9","ZIP":"sample string 10","COUNTRY":"sample string 11","DEFAULT_ADDRESS":true,"OLD":1,"Type":{"ATYPE_ID":1,"TYPE_NAME":"sample string 2","USAGE":1,"DIV_ID":3,"OLD":1}}

application/xml, text/xml

Sample:
<PatientAddress xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <CPI>sample string 2</CPI>
  <DIV_ID>3</DIV_ID>
  <ADDRESS_TYPE>4</ADDRESS_TYPE>
  <ADDRESS_NAME>sample string 5</ADDRESS_NAME>
  <STREET>sample string 6</STREET>
  <APT>sample string 7</APT>
  <CITY>sample string 8</CITY>
  <STATE>sample string 9</STATE>
  <ZIP>sample string 10</ZIP>
  <COUNTRY>sample string 11</COUNTRY>
  <DEFAULT_ADDRESS>true</DEFAULT_ADDRESS>
  <OLD>1</OLD>
  <Type>
    <ATYPE_ID>1</ATYPE_ID>
    <TYPE_NAME>sample string 2</TYPE_NAME>
    <USAGE>1</USAGE>
    <DIV_ID>3</DIV_ID>
    <OLD>1</OLD>
  </Type>
</PatientAddress>