- URL:
- https://[root]/portals/[portalID]/assignCategorySchema
- Methods:
POST
Example usage
The following is a sample ArcGIS Online POST request for the assign operation:
POST /sharing/rest/portals/0123456789ABCDEF/assignCategorySchema HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
{"categorySchema":[{"title":"Categories","categories":[{"title":"Basemaps"}]}]}The following is a sample ArcGIS Enterprise POST request for the assign operation:
POST /<context>/sharing/rest/portals/0123456789ABCDEF/assignCategorySchema HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
{"categorySchema":[{"title":"Categories","categories":[{"title":"Basemaps"}]}]}Description
The assign operation allows organization administrators to set up content categories for the organization as a hierarchical set of classes to help organize and browse items.
An organization can have a maximum of five category trees and each category schema can have up to four hierarchical levels. An organization can have a maximum of 200 categories. The title of each category can have up to 100 characters and the description of each category can have up to 300 characters.
The operation is available to both Esri default administrators and custom roles with the portal privilege.
Request parameters
| Parameter | Details |
|---|---|
| A Example |
| The response format. The default format is Values: |
Response properties
| Property | Details |
|---|---|
| Indicates whether the operation was successful. |
JSON Response syntax
{
"success": true
}JSON Response example
The following is a sample success response:
{
"success": true
}The following is a sample error message:
{
"error": {
"code": 400,
"messageCode": "ORG_1132",
"message": "Unable to assign category schema.",
"details": ["Category schema exceeds max tree size or empty."]
}
}