POST contact/createcontact/{accountId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
accountId | globally unique identifier |
Required |
Body Parameters
CreateContactModelName | Description | Type | Additional information |
---|---|---|---|
FirstName | string |
None. |
|
LastName | string |
None. |
|
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "FirstName": "sample string 1", "LastName": "sample string 2", "Email": "sample string 3" }
application/xml, text/xml
Sample:
<CreateContactModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoodExport.Web.Services.Models"> <Email>sample string 3</Email> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> </CreateContactModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EntityReferenceName | Description | Type | Additional information |
---|---|---|---|
Id | string |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 2" }
application/xml, text/xml
Sample:
<EntityReference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoodExport.Web.Services.Models"> <Id>sample string 1</Id> <Name>sample string 2</Name> </EntityReference>