POST api/PersonAddress/PostAddressId

Request Information

URI Parameters

None.

Body Parameters

PersonAddressEditDto
NameDescriptionTypeAdditional information
key

PersonAddressKey

None.

name

string

None.

categoryEnum

AddressCategoryEnum

None.

personId

integer

None.

addressId

integer

None.

id

PersonAddressKey

None.

isNew

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "key": {
    "PersonId": 2,
    "AddressId": 3
  },
  "name": "sample string 1",
  "categoryEnum": 1,
  "personId": 2,
  "addressId": 3,
  "id": {
    "PersonId": 2,
    "AddressId": 3
  },
  "isNew": true
}

application/xml, text/xml

Sample:
<PersonAddressEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Webapi.Models.Location">
  <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
  <key xmlns:d2p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Model.Location" xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">
    <d2p1:AddressId>3</d2p1:AddressId>
    <d2p1:PersonId>2</d2p1:PersonId>
  </key>
  <addressId>3</addressId>
  <categoryEnum>Home</categoryEnum>
  <name>sample string 1</name>
  <personId>2</personId>
</PersonAddressEditDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.