/validateClassification: Validate Classification

URL:
https://[root]/portals/[portalID]/classifcation/validateClassification
Methods:
POST
Version Introduced:
11.4

Example usage

The following is a sample ArcGIS Enterprise POST request for the validateClassification operation:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
POST /sharing/rest/portals/0123456789ABCDEF/classification/validateClassification HTTP/1.1
Host: machine.domain.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary24xg3C7evhGxxvOk
Content-Length: []

Content-Disposition: form-data; name="classificationValueFile"; filename=""
Content-Type: application/octet-stream

------WebKitFormBoundary24xg3C7evhGxxvOk
Content-Disposition: form-data; name="classificationValue"

{"classification": "In-confidence","banner": "In-confidence//Legal Privilege/To be reviewed on 2025-05-05","distribution": "Legal Privilege","reviewDate": "2025-05-05"}
------WebKitFormBoundary24xg3C7evhGxxvOk
Content-Disposition: form-data; name="f"

pjson
------WebKitFormBoundary24xg3C7evhGxxvOk
Content-Disposition: form-data; name="token"

IrJJfqrMHKhCqEupZPKe5T8PO2AQX5T7ZpO7z6A0vW3C79IeazSsnW2_vSGNY60V4VXzSrEm9TpKsFBgtUZa7WLdS4aCg5Y4HWYeNWBj_ohR7APIpjQTDD9KW4NlreC9F-coXQv8dz8CgLoQjyOJOaHDO9twy4W32Bcym9pkKqlp1nqanyOw61jqWWezbrjf
------WebKitFormBoundary24xg3C7evhGxxvOk--

Description

The validateClassification operation validates a possible classification marking for an item against the organization's classification schema, ensuring that the potential marking matches the schema and meets its requirements. If the operation is successful, the classication marking can be assigned to an item or used to update an item's previous classification. To perform the operation, either a file containing the classification marking, or the classification marking JSON object, must be included in the request.

Request parameters

ParameterDetails

classificationValueFile

A JSON file containing the classification marking. The structure of the marking should be a JSON object, containing properties related to the attributes specified in the schema and their appropriate values.

classificationValue

A JSON object of the classification marking. The JSON object should contain properties related to the attributes specified in the schema and reference a valid value for each attribute. The JSON object must include a banner property. The banner value must correspond to the values for bannerText or bannerTextExpression, whichever was included in the schema. The attributes and values in the banner property must use the value and attribute delimiter information as specified in the schema.

1
2
3
4
5
6
{
  "classification": "In-confidence",
  "banner": "In-confidence//Legal Privilege/To be reviewed on 2025-05-05",
  "distribution": "Legal Privilege",
  "reviewDate": "2025-05-05"
}

f

The response format. The default format is html.

Values: html | json | pjson

JSON Response example

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close