POST api/SiteProfile/CreateOrUpdate
Request Information
URI Parameters
None.
Body Parameters
SiteProfile| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| SiteName | string |
Required |
|
| Address1 | string |
Required |
|
| Address2 | string |
None. |
|
| Address3 | string |
None. |
|
| PostCode | string |
Required |
|
| TelNo | string |
None. |
|
| Credits | integer |
None. |
|
| CustomTerms | CustomTerm |
None. |
|
| LargeLuggage | LargeLuggage |
None. |
|
| LuggageCover | LuggageCover |
None. |
|
| LuggagePricing | LuggagePricing |
None. |
|
| Registration_Code | string |
None. |
|
| Registration_Email | string |
Required |
|
| Registration_Verified | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"SiteName": "sample string 2",
"Address1": "sample string 3",
"Address2": "sample string 4",
"Address3": "sample string 5",
"PostCode": "sample string 6",
"TelNo": "sample string 7",
"Credits": 1,
"CustomTerms": {
"SiteId": 1,
"CustomTerms": "sample string 2",
"CustomTermsSelected": true
},
"LargeLuggage": {
"SiteId": 1,
"LargeLuggage_NoChargeSelected": true,
"LargeLuggage_AmountPerItem": 3.0
},
"LuggageCover": {
"SiteId": 1,
"Cover_NoCoverSelected": true,
"Cover_100GbpCover": 3.0,
"Cover_100GbpCoverSelected": true,
"Cover_200GbpCover": 5.0,
"Cover_200GbpCoverSelected": true,
"Cover_400GbpCover": 7.0,
"Cover_400GbpCoverSelected": true,
"Cover_CustomGbpCover": 9.0,
"Cover_CustomGbpCoverSelected": true,
"Cover_CustomCoverPremium": 11.0
},
"LuggagePricing": {
"SiteId": 1,
"Pricing_DailyCharge": 2.0,
"Pricing_DailyChargeSelected": true,
"Pricing_24HourCharge": 4.0,
"Pricing_24HourChargeSelected": true,
"Pricing_PartDayCharge": 6.0,
"Pricing_PartDayChargeSelected": true
},
"Registration_Code": "sample string 8",
"Registration_Email": "sample string 9",
"Registration_Verified": true
}
application/xml, text/xml
Sample:
<SiteProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LuggageDrop.Models">
<Address1>sample string 3</Address1>
<Address2>sample string 4</Address2>
<Address3>sample string 5</Address3>
<Credits>1</Credits>
<CustomTerms>
<CustomTerms>sample string 2</CustomTerms>
<CustomTermsSelected>true</CustomTermsSelected>
<SiteId>1</SiteId>
</CustomTerms>
<Id>1</Id>
<LargeLuggage>
<LargeLuggage_AmountPerItem>3</LargeLuggage_AmountPerItem>
<LargeLuggage_NoChargeSelected>true</LargeLuggage_NoChargeSelected>
<SiteId>1</SiteId>
</LargeLuggage>
<LuggageCover>
<Cover_100GbpCover>3</Cover_100GbpCover>
<Cover_100GbpCoverSelected>true</Cover_100GbpCoverSelected>
<Cover_200GbpCover>5</Cover_200GbpCover>
<Cover_200GbpCoverSelected>true</Cover_200GbpCoverSelected>
<Cover_400GbpCover>7</Cover_400GbpCover>
<Cover_400GbpCoverSelected>true</Cover_400GbpCoverSelected>
<Cover_CustomCoverPremium>11</Cover_CustomCoverPremium>
<Cover_CustomGbpCover>9</Cover_CustomGbpCover>
<Cover_CustomGbpCoverSelected>true</Cover_CustomGbpCoverSelected>
<Cover_NoCoverSelected>true</Cover_NoCoverSelected>
<SiteId>1</SiteId>
</LuggageCover>
<LuggagePricing>
<Pricing_24HourCharge>4</Pricing_24HourCharge>
<Pricing_24HourChargeSelected>true</Pricing_24HourChargeSelected>
<Pricing_DailyCharge>2</Pricing_DailyCharge>
<Pricing_DailyChargeSelected>true</Pricing_DailyChargeSelected>
<Pricing_PartDayCharge>6</Pricing_PartDayCharge>
<Pricing_PartDayChargeSelected>true</Pricing_PartDayChargeSelected>
<SiteId>1</SiteId>
</LuggagePricing>
<PostCode>sample string 6</PostCode>
<Registration_Code>sample string 8</Registration_Code>
<Registration_Email>sample string 9</Registration_Email>
<Registration_Verified>true</Registration_Verified>
<SiteName>sample string 2</SiteName>
<TelNo>sample string 7</TelNo>
</SiteProfile>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |