POST v1/ProfilePersons/{id}/PersonPhones
Create New PersonPhone
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
CreatePersonPhoneInputPOST| Name | Description | Type | Additional information |
|---|---|---|---|
| name |
The phone name of person phone used to GET,PATCH and DELETE |
string |
None. |
| countryCode | string |
None. |
|
| areaCode | string |
None. |
|
| phone | string |
Required |
|
| phoneExtension | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"countryCode": "sample string 2",
"areaCode": "sample string 3",
"phone": "sample string 4",
"phoneExtension": "sample string 5"
}
text/html
Sample:
{"name":"sample string 1","countryCode":"sample string 2","areaCode":"sample string 3","phone":"sample string 4","phoneExtension":"sample string 5"}
application/xml, text/xml
Sample:
<v1_ProfilePersons_ProfilePersonEndpointController.CreatePersonPhoneInputPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint"> <areaCode>sample string 3</areaCode> <countryCode>sample string 2</countryCode> <name>sample string 1</name> <phone>sample string 4</phone> <phoneExtension>sample string 5</phoneExtension> </v1_ProfilePersons_ProfilePersonEndpointController.CreatePersonPhoneInputPOST>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PersonPhoneOutput| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of this phone |
integer |
None. |
| name |
The name of this phone |
string |
None. |
| countryCode |
The country code of this phone |
string |
None. |
| areaCode |
The area code of this phone |
string |
None. |
| phone |
The phone |
string |
None. |
| formattedPhone |
The formatted value of this phone |
string |
None. |
| phoneExtension |
The extension of this phone |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"countryCode": "sample string 3",
"areaCode": "sample string 4",
"phone": "sample string 5",
"formattedPhone": "sample string 6",
"phoneExtension": "sample string 7"
}
text/html
Sample:
{"id":1,"name":"sample string 2","countryCode":"sample string 3","areaCode":"sample string 4","phone":"sample string 5","formattedPhone":"sample string 6","phoneExtension":"sample string 7"}
application/xml, text/xml
Sample:
<v1_ProfilePersons_ProfilePersonEndpointController.PersonPhoneOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_ProfilePersons_ProfilePersonEndpoint"> <areaCode>sample string 4</areaCode> <countryCode>sample string 3</countryCode> <formattedPhone>sample string 6</formattedPhone> <id>1</id> <name>sample string 2</name> <phone>sample string 5</phone> <phoneExtension>sample string 7</phoneExtension> </v1_ProfilePersons_ProfilePersonEndpointController.PersonPhoneOutput>