Web Service Documentation / Categories / Meter Services / Edit Waste Meter Data
Updated on August 8, 2016
This web service updates a specific waste meter data record based on the information provided in the XML request. The corresponding meter must already be shared with you and you must have write access to the meter.
23.0
PUT
/wasteData/(wasteDataId)
Field Name | Value | Comments |
---|---|---|
Authorization | Basic credentials | |
Content-Type | application/xml |
Yes
Parameter Name | Description |
---|---|
wasteDataId | Id to the waste meter data |
Request/Response | Schema Name |
---|---|
Request | wasteData.xsd |
Response | response.xsd |
The following example updates an existing meter consumption data record that has an id of 711.
PUT /wasteData/711<?xml version="1.0" encoding="UTF-8"?> <wasteData estimatedValue="true"> <startDate>2013-01-01</startDate> <endDate>2013-01-31</endDate> <quantity>50</quantity> <cost>100</cost> <disposalDestination> <incinerationPercentage>25</incinerationPercentage> <landfillPercentage>25</landfillPercentage> <unknownDestPercentage>25</unknownDestPercentage> <wasteToEnergyPercentage>25</wasteToEnergyPercentage> </disposalDestination> </wasteData>
The following example indicates that the waste meter data was updated successfully.
<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok">
<id>711</id>
<links>
<link httpMethod="GET" link="/meter/1/wasteData" linkDescription="This is the GET url for this Waste Data."/>
</links>
</response>