- URL:
- https://[root]/portals/[portalID]/categorySchema
- Methods:
- GET
Example usage
The following is a sample ArcGIS Online request URL used to access the category resource:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/categorySchema?f=pjsonThe following is a sample ArcGIS Enterprise request URL used to access the category resource:
https://organization.example.com/<context>/sharing/rest/portals/0123456789ABCDEF/categorySchema?f=pjsonDescription
The category resource returns the content category schema for an organization.
Request parameters
| Parameter | Details | 
|---|---|
| 
 | The response format. The default format is  Values:  | 
Response properties
| Property | Details | 
|---|---|
| 
 | A JSON object that consists of a JSON array representing the top level categories. Each category object has  Example  | 
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",
      "description": "Main description",
      "categories": [
        {
          "title": "Basemaps",
          "description": "This is used to categorize basemaps.",
          "categories": [
            {
              "title": "Partner Basemap"
            },
            {
              "title": "Esri Basemaps",
              "description": "This is used to categorize Esri Basemaps.",
              "categories": [
                {
                  "title": "Esri Redlands Basemap"
                },
                {
                  "title": "Esri Highland Basemap"
                }
              ]
            }
          ]
        },
        {
          "title": "Imagery",
          "description": "This is used to categorize different types of imagery.",
          "categories": [
            {
              "title": "Multispectral Imagery"
            },
            {
              "title": "Temporal Imagery"
            }
          ]
        }
      ]
    },
    {
      "title": "Region",
      "description": "This is used to categorize maps by region.",
      "categories": [
        {
          "title": "US"
        },
        {
          "title": "World"
        }
      ]
    }
  ]
}