Web Service Documentation / Categories / Meter Services / Edit Waste Meter Data

Edit Waste Meter Data

Updated on August 8, 2016

Description

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.

Version

10.0

HTTP Method

PUT

Resource URL

/wasteData/(wasteDataId)

Header

Field Name Value Comments
Authorization Basic credentials
Content-Type application/xml

Authorization Required

Yes

Parameters

Parameter Name Description
wasteDataId Id to the waste meter data

XML Schemas

Request/Response Schema Name
Request wasteData.xsd
Response response.xsd

Example Request

The following example updates an existing meter consumption data record that has an id of 711.

PUT  /wasteData/711

<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>

Example Response

The following example indicates that the waste meter data was updated successfully.

<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>
TEST