/assignClassificationSchema: Assign Classification Schema

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 assignClassificationSchema operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 assignClassificationSchema 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 hasClassificationSchema 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

ParameterDetails

classificationSchemaFile

(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.

f

The response format. The default format is html.

Values: html | json | pjson

JSON Response example

Use dark colors for code blocksCopy
1
{"success": true}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.