POST api/addresses
Request Information
URI Parameters
None.
Body Parameters
AddressDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| AddressName | string |
None. |
|
| CreationDate | date |
None. |
|
| CreatorUserId | globally unique identifier |
None. |
|
| Line1 | string |
None. |
|
| Line2 | string |
None. |
|
| Line3 | string |
None. |
|
| Line4 | string |
None. |
|
| Line5 | string |
None. |
|
| City | string |
None. |
|
| Locality | string |
None. |
|
| PostCode | string |
None. |
|
| CountryCode | string |
None. |
|
| Telephone | string |
None. |
|
| EmailAddress | string |
None. |
|
| VatNumber | string |
String length: inclusive between 0 and 20 |
|
| IsDeleted | boolean |
None. |
|
| OrganisationId | globally unique identifier |
None. |
|
| ProfileId | globally unique identifier |
None. |
|
| AddressProperties | Collection of AddressPropertyDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "eb30b4e1-2c5f-4339-8c2a-a89cfc74ae20",
"AddressName": "sample string 2",
"CreationDate": "2025-12-06T03:06:12.8262341+00:00",
"CreatorUserId": "bc429074-e4f4-4c69-81e8-bc5808abc6b6",
"Line1": "sample string 5",
"Line2": "sample string 6",
"Line3": "sample string 7",
"Line4": "sample string 8",
"Line5": "sample string 9",
"City": "sample string 10",
"Locality": "sample string 11",
"PostCode": "sample string 12",
"CountryCode": "sample string 13",
"Telephone": "sample string 14",
"EmailAddress": "sample string 15",
"VatNumber": "sample string 16",
"IsDeleted": true,
"OrganisationId": "248a9538-29fd-456f-9d25-111c2746b8da",
"ProfileId": "5c1525d3-1849-4dea-9b63-a02b1f388d0b",
"AddressProperties": [
{
"Id": "d1c5ac21-6ecb-473c-86ef-2eb37b23b3c3",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-06T03:06:12.8262341+00:00",
"AddressId": "9a4bbc78-5c5d-4f82-93e9-fe23163db4ec"
},
{
"Id": "d1c5ac21-6ecb-473c-86ef-2eb37b23b3c3",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-06T03:06:12.8262341+00:00",
"AddressId": "9a4bbc78-5c5d-4f82-93e9-fe23163db4ec"
}
]
}
application/xml, text/xml
Sample:
<AddressDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Profile.Models">
<AddressName>sample string 2</AddressName>
<AddressProperties>
<AddressPropertyDto>
<AddressId>9a4bbc78-5c5d-4f82-93e9-fe23163db4ec</AddressId>
<CreationDate>2025-12-06T03:06:12.8262341+00:00</CreationDate>
<Id>d1c5ac21-6ecb-473c-86ef-2eb37b23b3c3</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</AddressPropertyDto>
<AddressPropertyDto>
<AddressId>9a4bbc78-5c5d-4f82-93e9-fe23163db4ec</AddressId>
<CreationDate>2025-12-06T03:06:12.8262341+00:00</CreationDate>
<Id>d1c5ac21-6ecb-473c-86ef-2eb37b23b3c3</Id>
<Name>sample string 2</Name>
<Value>sample string 3</Value>
</AddressPropertyDto>
</AddressProperties>
<City>sample string 10</City>
<CountryCode>sample string 13</CountryCode>
<CreationDate>2025-12-06T03:06:12.8262341+00:00</CreationDate>
<CreatorUserId>bc429074-e4f4-4c69-81e8-bc5808abc6b6</CreatorUserId>
<EmailAddress>sample string 15</EmailAddress>
<Id>eb30b4e1-2c5f-4339-8c2a-a89cfc74ae20</Id>
<IsDeleted>true</IsDeleted>
<Line1>sample string 5</Line1>
<Line2>sample string 6</Line2>
<Line3>sample string 7</Line3>
<Line4>sample string 8</Line4>
<Line5>sample string 9</Line5>
<Locality>sample string 11</Locality>
<OrganisationId>248a9538-29fd-456f-9d25-111c2746b8da</OrganisationId>
<PostCode>sample string 12</PostCode>
<ProfileId>5c1525d3-1849-4dea-9b63-a02b1f388d0b</ProfileId>
<Telephone>sample string 14</Telephone>
<VatNumber>sample string 16</VatNumber>
</AddressDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.