Skip To Content

Fields

  • URL:https://<catalog-url>/<serviceName>/RelationalCatalogServer/entities/<entityCatalogId>/fields
  • 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


{
   "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


{
    "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
         }
      }
  ]
}