Write Feature as Result

Description

LicenseLicense:

The ArcGIS Data Reviewer for Server extension is required in order to use this resource.

Submits a JSON feature object to the Data Reviewer workspace. The feature object includes a JSON geometry and attributes object. See the ArcGIS Data Reviewer for Server REST API Reference for information on JSON feature objects. Attributes are written to matching custom (user-defined) fields in REVTABLEMAIN. Attribute values are discarded if there are no matching fields between the feature object and REVTABLEMAIN.

This operation also submits Data Reviewer attributes to the Data Reviewer workspace. Specify Data Reviewer attributes in the reviewerAttributes parameter. Attributes can include the following fields:

Request parameters

Parameter

Details

feature

Description: The JSON feature to write as a result to the Data Reviewer workspace.

reviewerAttributes

Description: The Reviewer attributes written to the Data Reviewer workspace.

Values: {"sessionId":<sessionId number>, "severity":<severity value (1-5)>, "reviewTechnician":"<name>", "reviewStatus":"<status value as string>", "subtype":"<a feature class subtype>", "notes":"<descriptive information>", "lifecycleStatus":<lifecycle status value>, "resourceName":"<origin table name>"}

f

Description: The response format. The default response format is html.

Values: html | json

Example usage

Example 1: Write a point feature and Reviewer attributes to the Reviewer workspace.

http://localhost:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/writeFeatureAsResult?feature={"geometry":{"y":4044612.09566993,"x":-12731945.8995073,"spatialReference":{"wkid":102100}},"attributes":{"FIRE_NAME":"Deer","ACTIVE":"N","FIRE_NUM":"E0YL","AGENCY":"BIA","YEAR_":"2009","ORIG_FID":"345","UNIT_ID":"AZ-CRA","TIME_":"0000","DATE_":"7%2F6%2F2009","FIRE":"","ACRES":"330.37","Shape":"Point","COMMENTS":"","OBJECTID":"93"}}&reviewerAttributes={"reviewStatus":"testStatus","reviewTechnician":"testUser","notes":"Deer+fire","resourceName":"Fire+Centroids+(2009)","lifecycleStatus":1,"subtype":"","severity":3,"sessionId":1}&f=pjson

JSON response example

{
 "result": "success",
 "messages": ""
}

7/5/2017