POST v1/admin/company/{id}/CompanyAddresses
Create New Company Address for Admin
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
CreateAdminCompanyAddressInputPOST| Name | Description | Type | Additional information |
|---|---|---|---|
| addressName |
The address name of person address used to GET,PATCH and DELETE |
string |
None. |
| line1 | string |
None. |
|
| line2 | string |
None. |
|
| city | string |
None. |
|
| stateProvince | string |
None. |
|
| postalCode | string |
None. |
|
| country | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"addressName": "sample string 1",
"line1": "sample string 2",
"line2": "sample string 3",
"city": "sample string 4",
"stateProvince": "sample string 5",
"postalCode": "sample string 6",
"country": "sample string 7"
}
text/html
Sample:
{"addressName":"sample string 1","line1":"sample string 2","line2":"sample string 3","city":"sample string 4","stateProvince":"sample string 5","postalCode":"sample string 6","country":"sample string 7"}
application/xml, text/xml
Sample:
<v1_Admin_CompanyEndpointController.CreateAdminCompanyAddressInputPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_CompanyEndpoint"> <addressName>sample string 1</addressName> <city>sample string 4</city> <country>sample string 7</country> <line1>sample string 2</line1> <line2>sample string 3</line2> <postalCode>sample string 6</postalCode> <stateProvince>sample string 5</stateProvince> </v1_Admin_CompanyEndpointController.CreateAdminCompanyAddressInputPOST>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AdminCompanyAddressOutput| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of this address |
integer |
None. |
| name |
The name of this address |
string |
None. |
| line1 |
The addressLine1 of this address |
string |
None. |
| line2 |
The addressLine2 of this address |
string |
None. |
| city |
The city of this address |
string |
None. |
| stateProvince |
The state province of this address |
string |
None. |
| postalCode |
The postal code of this address |
string |
None. |
| country |
The country of this address |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"line1": "sample string 3",
"line2": "sample string 4",
"city": "sample string 5",
"stateProvince": "sample string 6",
"postalCode": "sample string 7",
"country": "sample string 8"
}
text/html
Sample:
{"id":1,"name":"sample string 2","line1":"sample string 3","line2":"sample string 4","city":"sample string 5","stateProvince":"sample string 6","postalCode":"sample string 7","country":"sample string 8"}
application/xml, text/xml
Sample:
<v1_Admin_CompanyEndpointController.AdminCompanyAddressOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_CompanyEndpoint"> <city>sample string 5</city> <country>sample string 8</country> <id>1</id> <line1>sample string 3</line1> <line2>sample string 4</line2> <name>sample string 2</name> <postalCode>sample string 7</postalCode> <stateProvince>sample string 6</stateProvince> </v1_Admin_CompanyEndpointController.AdminCompanyAddressOutput>