Fields

URL:
https://<catalog-url>/<serviceName>/RelationalCatalogServer/entities/<entityCatalogId>/fields
Methods:
GET
Version Introduced:
10.5

Description

This resource provides information about an entity's fields.

Request Parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json

Example Usage

https://services.myserver.com/arcgis/rest/services/LOB/RelationalCatalogServer/entities/dbo.flight_route/fields?f=json

JSON Response Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
{
   "fields":[
     {
       "catalogId": "",             //unique ID for the field
       "type": "",                  //esriFieldTypeEnum
       "alias": "",                 //user-friendly name (not guaranteed to be unique)
       "nullable": <true | false>,  //indicates whether the field can accept null values
       "geometryType": "",          //esriGeometryPoint | esriGeometryPolyline | esriGeometryPolygon | esriGeometryMultipoint
       "spatialReference": {}       //spatial reference object
     },…
  ]
}

JSON Response 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
26
{
    "fields" : [
      {
        "catalogId":"dbo.flight_route.id",
        "type":"esriFieldTypeInteger",
        "alias":"id",
        "nullable":false
      },
      {
        "catalogId":"dbo.flight_route.codeshare",
        "type":"esriFieldTypeString",
        "alias":"codeshare",
        "nullable":true
      },
      {
        "catalogId":"dbo.flight_route.shape_geom",
        "type":"esriFieldTypeGeometry",
        "alias":"shape_geom",
        "nullable":true,
        "geometryType":"esriGeometryPolyline",
        "spatialReference":{
          "wkid":4326
         }
      }
  ]
}

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