surveyResultsXml¶
Supported, no replacement yet
This endpoint remains fully supported. No replacement exists in the new API yet, and no action is needed. When a replacement ships you will get 12 months' notice, and this site will be updated.
Reference¶
/rest/assetmgmt/survey/surveyResultsXML/{startDate}/{endDate}/{surveyIdList}
GET
Get survey results for surveys with the specified ID's and that have been completed between the start and end date specified. This returns all SiteSurveyAttributes and SiteSurveyAssetAttibutes along with asset data.available response representations:
- 200 - XML
<root>
<siteSurveys>
<siteSurvey id="345" status="1" siteRef="abc123" jobRef="J09XNK" jobClientRef="1234" performedOn"23/09/2011">
<attributeGroups>
<attributeGroup name="rob-test">
<attributes>
<attribute name="Actual Void Date" value="12/2/2009"/>
<attribute name="Date Keys Received" value="12/3/2009"/>
</attributes>
</attributeGroup>
</attributeGroups>
<assets>
<asset status="1" id="100" description="Boiler Model 01 - White" model="Model 01" manufacturer="Worcester" type="Boiler" ref="117554" condition="Good" siteLocation="Kitchen">
<assetAttributeGroups>
<assetAttributeGroup name="CP12">
<assetAttributes>
<assetAttribute name="Question 1" value="Answer 1"/>
<assetAttribute name="Question 2" value="Answer 2"/>
</assetAttributes>
</assetAttributeGroup>
<assetAttributeGroups>
</asset>
</assets>
</siteSurvey>
</siteSurveys>
<result>success</result>
<result_msg>
</result_msg>
</root>
See the Asset Management API matrix for the full list of endpoints in this category.