ArcGIS REST API

Category Schema

Description

Content category schema of an organization.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails
categorySchema

A JSON object that consists of a JSON array representing the top level categories. Each category object has title, description and categories properties, categories consists of an array of objects with each having the same properties and represents the descendant or child categories and so on.

Example:

[{
  "title": "Categories",
  "categories": [
    {
      "title": "Trending",
      "categories": [
        {
          "title": "New and noteworthy",
          "categories": []
        },
        {
          "title": "Current events",
          "categories": []
        }
      ]
    },
    {
      "title": "Basemaps",
      "categories": [
        {
          "title": "Reference maps",
          "categories": []
        },
        {
          "title": "Creative maps",
          "categories": []
        },
        {
          "title": "Vector tiles",
          "categories": []
        },
        {
          "title": "Component layers",
          "categories": []
        },
        {
          "title": "Historical maps",
          "categories": []
        }
      ]
    },
    {
      "title": "Imagery",
      "categories": [
        {
          "title": "Basemap imagery",
          "categories": []
        },
        {
          "title": "Multispectral imagery",
          "categories": []
        },
        {
          "title": "Temporal imagery",
          "categories": []
        },
        {
          "title": "Event imagery",
          "categories": []
        }
      ]
    }
  ]
}]

Example Usage

URL for Category Schema

https://www.arcgis.com/sharing/rest/portals/J423vH8fR9HV444k/categorySchema

JSON Response Syntax

{"categorySchema": [
  {
    "title": "<root category title>",
    "description": "<root category description>",
    "categories": [
      {
        "title": "<parent category title>",
        "description": "<parent category description>",
        "categories": [
          {"title": "<child category title>",
           "description": "<child category description>",
           "categories": [
              {
                "title": "<grandchild category title>",
                "description": "<grandchild category description>" 
              }
            ....   
            ]
          }
        ....
        ]
      }
      ....
    ]
  }
  ....
]}

JSON Response Example

{
	"categorySchema": [{
		"title": "Categories",
		"categories": [{
			"title": "Basemaps",
			"categories": [{
				"title": "Partner Basemap"
			}, {
				"title": "Esri Basemaps",
				"categories": [{
					"title": "Esri Redlands Basemap"
				}, {
					"title": "Esri Highland Basemap"
				}]
			}]
		}, {
			"title": "Imagery",
			"categories": [{
				"title": "Multispectral Imagery"
			}, {
				"title": "Temporal Imagery"
			}]
		}]
	}, {
		"title": "Region",
		"categories": [{
			"title": "US"
		}, {
			"title": "World"
		}]
	}]
}