- URL:
- https://[root]/portals/[portalID]/classifcation/assignClassificationSchema
- Methods:
POST
- Version Introduced:
- 11.4
Example usage
The following is a sample ArcGIS Enterprise POST request for the assign
operation:
POST /sharing/rest/portals/0123456789ABCDEF/classification/assignClassificationSchema HTTP/1.1
Host: machine.domain.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQ6A2tRlcmsxdN3tm
Content-Length: []
------WebKitFormBoundaryQ6A2tRlcmsxdN3tm
Content-Disposition: form-data; name="classificationSchemaFile"; filename=""
Content-Type: application/octet-stream
advCategorySchema.json
------WebKitFormBoundaryQ6A2tRlcmsxdN3tm
Content-Disposition: form-data; name="f"
pjson
------WebKitFormBoundaryQ6A2tRlcmsxdN3tm
Content-Disposition: form-data; name="token"
IrJJfqrMHKhCqEupZPKe5T8PO2AQX5T7ZpO7z6A0vW3C79IeazSsnW2_vSGNY60ViR6ffmGvBQM6gkBmiwCY6Z2Wh06_MEjvztNKX2_qhchAJaf3t9PXG19NIdayJI2DJNglxQxmbLzgJa3Np5vGoTpj5qXAcW45eg8d-KhRoSNrHFnkCtqVj-RNXYHnODY2
------WebKitFormBoundaryQ6A2tRlcmsxdN3tm--
Description
The assign
operation assigns a classification schema to an organization. The classification schema is a JSON object that contains a hierarchy of classification and dissemination information that's used to classify the items in an organization, which allows for organizations to meet the data privacy or compliancy laws and regulations they adhere to.
The classification schema should be provided in a JSON file and include the current grammar version as specified on the Classification resource. For more information on configuring a classification schema, or on item classification, see the Item classification reference documentation.
When a classification schema is successfully assigned, the Portal and Classification resources are updated to have the has
property (indicating that a schema has been assigned to the organization) set as true
. After the schema has been assigned, all new items added to the organization will need to be classified, and preexisting items will need to be updated with classification information.
Request parameters
Parameter | Details |
---|---|
(Required) | The category schema JSON file. For information on how the syntax of a classification schema, see the Item classification reference documentation. Sample classification schemas can also be accessed from the ArcGIS/Classification GitHub repository. |
| The response format. The default format is Values: |
JSON Response example
{"success": true}