- URL:
- https://[root]/portals/[portalID]/assignMemberCategorySchema
- Methods:
POST
Example usage
The following is a sample ArcGIS Online POST request for the assign
operation:
POST /sharing/rest/portals/0123456789ABCDEF/assignMemberCategorySchema HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
memberCategorySchema={
"memberCategorySchema": [
{
"title": "Office Location",
"categories": [
{
"title": "USA",
"categories": [
{
"title": "Maine"
},
{
"title": "California",
"categories": [
{
"title": "Redlands"
},
{
"title": "San Diego"
}
]
}
]
},
{
"title": "Europe",
"categories": [
{
"title": "Zurich"
},
{
"title": "Edinburgh"
}
]
}
]
},
{
"title": "Department",
"categories": [
{
"title": "Sales"
},
{
"title": "Consulting"
}
]
}
]
}&f=pjson
The following is a sample ArcGIS Enterprise POST request for the assign
operation:
POST /webadaptor/sharing/rest/portals/0123456789ABCDEF/assignMemberCategorySchema HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
memberCategorySchema={
"memberCategorySchema": [
{
"title": "Office Location",
"categories": [
{
"title": "USA",
"categories": [
{
"title": "Maine"
},
{
"title": "California",
"categories": [
{
"title": "Redlands"
},
{
"title": "San Diego"
}
]
}
]
},
{
"title": "Europe",
"categories": [
{
"title": "Zurich"
},
{
"title": "Edinburgh"
}
]
}
]
},
{
"title": "Department",
"categories": [
{
"title": "Sales"
},
{
"title": "Consulting"
}
]
}
]
}&f=pjson
Description
The assign
operation allows organization administrators and members with appropriate privileges to categorize organization members. Once the administrator or member with appropriate privileges sets up member categories in their organization, they can assign the categories to the members. They can then filter the members based on the categories.
An organization can have up to three levels of categories in the hierarchy, with a maximum of 200 categories and subcategories. Each organization member can have a maximum of 20 member categories assigned to them. It is recommended that you create a comprehensive and complete category hierarchy and naming scheme is before assigning categories to members.
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 for the assign
operation:
{
"success": true
}
The following is a sample error message for the assign
operation:
{
"error": {
"code": 400,
"messageCode": "ORG_1132",
"message": "Unable to assign member category schema.",
"details": ["Member category schema exceeds max tree size or empty."]
}
}