Write Feature As Result

URL:
https://<ReviewerResults-url>/writeFeatureAsResult
Methods:
GET
Required Capability:
Data Reviewer Server
Version Introduced:
10.1

Description

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

Request parameters

ParameterDetails

feature

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

Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "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/6/2009",
    "FIRE": "",
    "ACRES": "330.37",
    "Shape": "Point",
    "COMMENTS": "",
    "OBJECTID": "93"
  }
}

reviewerAttributes

The Reviewer attributes written to the Data Reviewer workspace.

Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
  "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

The response format. The default response format is html.

Values: html | json | pjson

Reviewer attribute properties

ParameterDetails

sessionId

The session in which validation occurs. A Data Reviewer session is similar to an edit session in that it represents a set of interactions with your data. While edit sessions contain editing transactions, a Data Reviewer session contains quality control tasks. Sessions are stored in the Data Reviewer workspace, and created with the Session Manager tool in the ArcGIS Data Reviewer extension for ArcMap or ArcGIS Pro, or using the Create Reviewer Session geoprocessing tool. Use the numeric format only.

Severity

ArcGIS Data Reviewer severity value. Severity allows you to indicate the importance of a check's results.

reviewTechnician

The user name under which results or features are submitted to the Reviewer workspace.

reviewStatus

A status value (any string) to write to the ReviewStatus field for the result or feature submitted to the Reviewer workspace.

Subtype

Submitted as a string to REVTABLEMAIN. Subtype should be a valid subtype in the feature class specified in the ORIGINTABLE field in REVTABLEMAIN.

Notes

Extra information describing a result or feature.

lifecycleStatus

The state of a Data Reviewer result in the quality control workflow. LifecycleStatus should match a descriptionCode.

resourceName

Represents an ArcGIS Data Reviewer resource name. Corresponds to the OriginTable in REVTABLEMAIN and ResourceName in REVCHECKRUNTABLE.

Example usage

Write a point feature and Reviewer attributes to the Reviewer workspace.

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/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

Use dark colors for code blocksCopy
1
2
3
4
{
  "result": "success",
  "messages": ""
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.