updateSurvey¶
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/updateSurvey/{site-survey-id}
POST
Updates a survey and its values. Sets status of Survey to In Progress if it is not already in that state.acceptable request representations:
- application/json
{ "performedOn":"12/02/2011 12:34", "performedBy":"34", //user id "status":"2", //site survey status "attributes":[ { "id":"3422", //sitesurveyattribute id
"autocode":"MB-A17F12-00099", // this or id not both
"value":"332" }, { "id":"9789",
"autocode":"MB-A17F12-00098", // this or id not both
"value":"this is my answer" } ], "assets":[ { "id":"282", //sitesurveyasset id
"autocode":"MB-A17F12-00001", // this or id not both
"ref":"Boiler",
"conditionID":"3", "siteLocationID":"3432",
"siteLocationAutocode":"MB-A17F12-00099", // this or siteLocationID not both "status":"3", "attributes":[ { "id":"6565", //sitesurveyassetattribute id
"autocode":"MB-A17F12-00045", // this or id not both
"value":"Yes" } ] } ]}See the Asset Management API matrix for the full list of endpoints in this category.