Skip To Content

Query Data Elements (Feature Service)

Description

The queryDataElements resource provides access to valuable information for datasets exposed through a feature service such as a feature layer, a table or a utility network layer. The response is dependent on the type of layer that is queried.

The supportsQueryDataElements resource property is enabled for nonhosted feature services published using ArcGIS Enterprise 10.6 or later. This property is false or absent if not supported for the feature service.

Request parameters

ParameterDetails
f

The response format. The default response format is html.

Values: html | json

layers

Array of layerIds for which to get the data elements.

Syntax: layers=[<layerId>]

Example:

layers=[0,8]

Example usage

Enter an array of layerIds to return the data elements from the USA feature service:

https://machine.domain.com/webadaptor/rest/services/USA/FeatureServer/queryDataElements

JSON Response syntax


{
"layerDataElements": 
[
	{
		"layerId": 0,
		"dataElement": {...}
	},
 ...
]
}