- URL:https://[root]/portals/[portalID]/categorySchema
Example usage
Below is a sample ArcGIS Online request URL used to access the categorySchema resource:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/categorySchema?f=pjson
Below is a sample ArcGIS Enterprise request URL used to access the categorySchema resource:
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/categorySchema?f=pjson
Description
Content category schema of an organization.
Request parameters
Parameter | Details |
---|---|
f | The response format. The default format is html. Values: html | json | pjson |
Response properties
Property | Details |
---|---|
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
|
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"
}
]
}
]
}