POST api/Location/Add/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
LocationViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationID | integer |
None. |
|
| LocationName | string |
None. |
|
| Country | CountryViewModel |
None. |
|
| IsPrimary | boolean |
None. |
|
| IsDeleted | boolean |
None. |
|
| Zip | string |
None. |
|
| Address1 | string |
None. |
|
| Address2 | string |
None. |
|
| City | string |
None. |
|
| Phone | string |
None. |
|
| Comments | string |
None. |
|
| Fax | string |
None. |
|
| County | CountyViewModel |
None. |
|
| State | StateViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"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
}
}
application/xml, text/xml
Sample:
<LocationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
<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>
</LocationViewModel>
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.