POST request/water/customer/{customerid}/site
Creates a new Site for a Customer
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerid | integer |
Required |
Body Parameters
WaterSitePostName | Description | Type | Additional information |
---|---|---|---|
CmosSiteId | integer |
None. |
|
ContractEndDate | date |
None. |
|
EnglandOrScotland | byte |
None. |
|
Meters | Collection of WaterSiteMeterPost |
None. |
|
spid | string |
None. |
|
sspid | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "spid": "sample string 1", "sspid": "sample string 2", "cmosSiteId": 3, "contractEndDate": "2025-06-26T10:57:09.70147+00:00", "meters": [ { "cmosMeterId": 1, "volume": 1.0, "type": "sample string 2" }, { "cmosMeterId": 1, "volume": 1.0, "type": "sample string 2" } ], "englandOrScotland": 64 }
text/html
Sample:
{"spid":"sample string 1","sspid":"sample string 2","cmosSiteId":3,"contractEndDate":"2025-06-26T10:57:09.70147+00:00","meters":[{"cmosMeterId":1,"volume":1.0,"type":"sample string 2"},{"cmosMeterId":1,"volume":1.0,"type":"sample string 2"}],"englandOrScotland":64}
application/xml, text/xml
Sample:
<WaterSitePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGeniusForBusiness.Api.Models.WaterSiteDto"> <CmosSiteId>3</CmosSiteId> <ContractEndDate>2025-06-26T10:57:09.70147+00:00</ContractEndDate> <EnglandOrScotland>64</EnglandOrScotland> <Meters> <WaterSiteMeterPost> <CmosMeterId>1</CmosMeterId> <Type>sample string 2</Type> <Volume>1</Volume> </WaterSiteMeterPost> <WaterSiteMeterPost> <CmosMeterId>1</CmosMeterId> <Type>sample string 2</Type> <Volume>1</Volume> </WaterSiteMeterPost> </Meters> <spid>sample string 1</spid> <sspid>sample string 2</sspid> </WaterSitePost>
Response Information
Resource Description
integerResponse Formats
application/json, text/json, text/html
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>