Feature (Feature Service)

URL:
https://<root>/<serviceName>/FeatureServer/<layerId>/<featureId>
Methods:
GET
Operations:
Add Attachment, Delete Attachments, Update Attachment, HTML Popup
Child Resources:
Attachment Infos
Required Capability:
Query
Version Introduced:
10.0

Description

The Feature resource represents a single feature in a layer in a feature service.

The Feature resource has the following two child resources:

  • Attachment Infos—Returns information about attachments associated with this feature. This resource is available only if the layer has advertised that it has attachments.
  • HTML Popup—Returns information about the HTML pop-up window associated with this feature.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

Example usage

1
https://services.myserver.com/lidGgNLxw9LL0SbI/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/1/1?f=pjson

JSON Response syntax

1
2
3
{
  "feature": <feature>
}

JSON Response example

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
26
27
{
  "feature": {
    "attributes": {
      "objectid":1,
      "fdate":932428800000,
      "resolution":3,
      "gnis_id":null,
      "gnis_name":null,
      "lengthkm":0.024,
      "reachcode":"11070101001016",
      "flowdir":1,
      "wbareacomid":null,
      "ftype":558,
      "fcode":55800,
      "enabled":1
    },
    "geometry": {
      "paths": [
        [
          [-95.9899452281111, 38.1345878074741],
          [-95.9898896947778, 38.1344644074744],
          [-95.9899164947778, 38.1343866074744]
        ]
      ]
    }
  }
}

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close