Web Service Documentation / Categories / Property Services / Edit Custom Metric

Edit Custom Metric

Updated on February 26, 2024

Description

This web service updates a specific custom metric based on the information provided in the XML request for a given property. The property must already be shared with you.

Version

23.0

HTTP Method

PUT

Resource URL

/property/(propertyId)/customMetrics/(customMetricSlot)

Header

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

Authorization Required

Yes

Parameters

Parameter Name Description
customMetricSlot Slot or position number (as displayed in the user interface) that identifies the custom metric.
propertyId Id to the property that is to be updated

XML Schemas

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

Example Request

The following example updates the custom metric (that displays first in the user interface) that belongs to a property that has an id of 14.

PUT  /property/14/customMetrics/1

<?xml version="1.0" encoding="UTF-8"?> <customMetric> <numeratorMetricId>272</numeratorMetricId> <denominatorDetailTypeId>2</denominatorDetailTypeId> </customMetric>

Example Response

The following example indicates that the custom metric was successfully updated.

<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok">
     <links>
          <link linkDescription="This is the GET url for this Custom Metric." link="/property/14/customMetrics/1" httpMethod="GET"/>
     </links>
</response>
LIVE