type

Contains information about an attribute field.

Referenced by: layerDefinition

Properties

Property Details
domains A comma-delimited series of domain objects for each domain in the type.
id A unique string or numerical ID for the type.
name A user-friendly name for the type.
templates[] Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types.

types Example

{
  "id": "1",
  "name": "Active",
  "domains": {
    "status": {
      "type": "inherited"
    },
    "hazardous_issue": {
      "type": "inherited"
    },
    "severity": {
      "type": "inherited"
    }
  },
  "templates": [
    {
      "name": "Active",
      "description": "",
      "prototype": {
        "attributes": {
          "occurence_local": null,
          "date_resolved": null,
          "issue_id": null,
          "issue_name": null,
          "empname_reporting": null,
          "emp_id": null,
          "job_title": null,
          "hazard_date": null,
          "status": "1",
          "hazardous_issue": null,
          "severity": null,
          "number_injuries": null,
          "comments_injuries": null,
          "comments_hazard": null,
          "issued_resolved": null,
          "comments_resolve": null
        }
      },
      "drawingTool": "esriFeatureEditToolPoint"
    }
  ]
}

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