POST api/Contact/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ContactAddViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Location | LocationViewModel |
None. |
|
| CustomerID | integer |
None. |
|
| CustomerName | string |
None. |
|
| Website | string |
None. |
|
| ContactId | integer |
None. |
|
| IsPrimary | boolean |
None. |
|
| IsDeleted | boolean |
None. |
|
| FirstName | string |
None. |
|
| MiddleName | string |
None. |
|
| LastName | string |
None. |
|
| Title | string |
None. |
|
| OfficePhone | string |
None. |
|
| Ext | string |
None. |
|
| CellPhone | string |
None. |
|
| string |
None. |
||
| Fax | string |
None. |
|
| Comments | string |
None. |
|
| ContactName | string |
None. |
|
| DateCreated | date |
None. |
|
| ContactFunction | ContactFunction |
None. |
Request Formats
application/json, text/json
Sample:
{
"location": {
"locationID": 1,
"locationName": "sample string 2",
"country": {
"countryID": 1,
"countryName": "sample string 2"
},
"isPrimary": true,
"isDeleted": true,
"zip": "sample string 5",
"address1": "sample string 6",
"address2": "sample string 7",
"city": "sample string 8",
"phone": "sample string 9",
"comments": "sample string 10",
"fax": "sample string 11",
"county": {
"countyID": 1,
"countyName": "sample string 2",
"stateID": 3
},
"state": {
"stateID": 1,
"stateName": "sample string 2",
"stateAbvr": "sample string 3",
"countryID": 4
}
},
"customerID": 1,
"customerName": "sample string 2",
"website": "sample string 3",
"contactId": 4,
"isPrimary": true,
"isDeleted": true,
"firstName": "sample string 7",
"middleName": "sample string 8",
"lastName": "sample string 9",
"title": "sample string 10",
"officePhone": "sample string 11",
"ext": "sample string 12",
"cellPhone": "sample string 13",
"email": "sample string 14",
"fax": "sample string 15",
"comments": "sample string 16",
"contactName": "sample string 17",
"dateCreated": "2025-12-09T23:07:39.6058369-05:00",
"contactFunction": {
"contactFunctionID": 1,
"contactFunctionName": "sample string 2",
"primaryIndustryID": 3
}
}
application/xml, text/xml
Sample:
<ContactAddViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
<CellPhone>sample string 13</CellPhone>
<Comments>sample string 16</Comments>
<ContactFunction>
<ContactFunctionID>1</ContactFunctionID>
<ContactFunctionName>sample string 2</ContactFunctionName>
<PrimaryIndustryID>3</PrimaryIndustryID>
</ContactFunction>
<ContactId>4</ContactId>
<ContactName>sample string 17</ContactName>
<DateCreated>2025-12-09T23:07:39.6058369-05:00</DateCreated>
<Email>sample string 14</Email>
<Ext>sample string 12</Ext>
<Fax>sample string 15</Fax>
<FirstName>sample string 7</FirstName>
<IsDeleted>true</IsDeleted>
<IsPrimary>true</IsPrimary>
<LastName>sample string 9</LastName>
<MiddleName>sample string 8</MiddleName>
<OfficePhone>sample string 11</OfficePhone>
<Title>sample string 10</Title>
<CustomerID>1</CustomerID>
<CustomerName>sample string 2</CustomerName>
<Location>
<Address1>sample string 6</Address1>
<Address2>sample string 7</Address2>
<City>sample string 8</City>
<Comments>sample string 10</Comments>
<Country>
<CountryID>1</CountryID>
<CountryName>sample string 2</CountryName>
</Country>
<County>
<CountyID>1</CountyID>
<CountyName>sample string 2</CountyName>
<StateID>3</StateID>
</County>
<Fax>sample string 11</Fax>
<IsDeleted>true</IsDeleted>
<IsPrimary>true</IsPrimary>
<LocationID>1</LocationID>
<LocationName>sample string 2</LocationName>
<Phone>sample string 9</Phone>
<State>
<CountryID>4</CountryID>
<StateAbvr>sample string 3</StateAbvr>
<StateID>1</StateID>
<StateName>sample string 2</StateName>
</State>
<Zip>sample string 5</Zip>
</Location>
<Website>sample string 3</Website>
</ContactAddViewModel>
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.