/classificationSchema: Classification Schema

URL:
https://[root]/portals/[portalID]/classifcation/classificationSchema
Methods:
GET
Version Introduced:
11.4

Example usage

The following is a sample ArcGIS Enterprise request used to access the classificationSchema resource:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/classification/classificationSchema?f=pjson

Description

The classificationSchema resource returns the classification schema for an organization. If no classification schema has been assigned to the organization, this resource returns an empty classificationSchema JSON object.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

JSON Response example

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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
  "name": "academic-institution-classification-schema",
  "version": "2.0",
  "grammarVersion": "2.0",
  "attributeCategories": [],
  "bannerExpression": "function bannerExpression(schemaJsonString, valueJsonString, attributeId) {\n    var valueJson = Dictionary(valueJsonString)\n    var schemaJson = Dictionary(schemaJsonString)\n    var selectionText = \"\"\n    if (HasKey(valueJson, \"classification\")) {\n        selectionText = selectionText + valueJson[\"classification\"]\n        if (HasKey(valueJson, \"distribution\")) {\n            selectionText = selectionText + \"//\" + valueJson[\"distribution\"]\n        }\n        if (HasKey(valueJson, \"reviewDate\") && valueJson[\"classification\"] != \"Unclassified\") {\n            selectionText = selectionText + \"/\" + \"To be reviewed on\" + \" \" + valueJson[\"reviewDate\"]\n        }\n    }\n    return selectionText;\n}\nbannerExpression(schemaJsonString, valueJsonString, attributeId)",
  "selectionTextExpression": "function selectionTextExpression(schemaJsonString, valueJsonString, attributeId) {\n    var valueJson = Dictionary(valueJsonString)\n    var schemaJson = Dictionary(schemaJsonString)\n    var selectionText = \"\"\n    if (HasKey(valueJson, \"classification\")) {\n        selectionText = selectionText + valueJson[\"classification\"]\n        if (HasKey(valueJson, \"distribution\")) {\n            selectionText = selectionText + \"//\" + valueJson[\"distribution\"]\n        }\n        if (HasKey(valueJson, \"reviewDate\") && valueJson[\"classification\"] != \"Unclassified\") {\n            selectionText = selectionText + \"/\" + \"To be reviewed on\" + \" \" + valueJson[\"reviewDate\"]\n        }\n    }\n    return selectionText;\n}\nselectionTextExpression(schemaJsonString, valueJsonString, attributeId)",
  "classificationMetadata": {
    "primaryAttribute": "classification",
    "defaultValue": "Unclassified",
    "classificationValueProperties": [
      {
        "value": "Unclassified",
        "acronym": "Unclassified",
        "backgroundColor": "Grey",
        "textColor": "Black"
      },
      {
        "value": "In-confidence",
        "acronym": "In-confidence",
        "backgroundColor": "Black",
        "textColor": "White"
      },
      {
        "value": "Sensitive",
        "acronym": "Sensitive",
        "backgroundColor": "Black",
        "textColor": "White"
      },
      {
        "value": "Restricted",
        "acronym": "Restricted",
        "backgroundColor": "Black",
        "textColor": "White"
      },
      {
        "value": "Confidential",
        "acronym": "Confidential",
        "backgroundColor": "Green",
        "textColor": "White"
      },
      {
        "value": "Secret",
        "acronym": "Secret",
        "backgroundColor": "Blue",
        "textColor": "White"
      },
      {
        "value": "Top Secret",
        "acronym": "Top Secret",
        "backgroundColor": "Red",
        "textColor": "White"
      }
    ]
  },
  "attributes": {
    "classification": {
      "label": "Classification",
      "description": "Classification",
      "type": "string",
      "uiElement": "single-select",
      "validValues": [
        {
          "label": "Unclassified",
          "value": "Unclassified"
        },
        {
          "label": "In-confidence",
          "value": "In-confidence"
        },
        {
          "label": "Sensitive",
          "value": "Sensitive"
        },
        {
          "label": "Restricted",
          "value": "Restricted"
        },
        {
          "label": "Confidential",
          "value": "Confidential"
        },
        {
          "label": "Secret",
          "value": "Secret"
        },
        {
          "label": "Top Secret",
          "value": "Top Secret"
        }
      ],
      "selectionDisplayOrder": 1,
      "bannerOrder": 1,
      "labelDelimiter": "",
      "valueDelimiter": "-",
      "attributeDelimiter": ";"
    },
    "distribution": {
      "label": "Distribution",
      "description": "Distribution",
      "type": "string",
      "uiElement": "single-select",
      "isRequired": true,
      "validValues": [
        {
          "label": "Budget",
          "value": "Budget"
        },
        {
          "label": "Cabinet",
          "value": "Cabinet"
        },
        {
          "label": "Commercial",
          "value": "Commercial"
        },
        {
          "label": "Legal Privilege",
          "value": "Legal Privilege"
        },
        {
          "label": "Medical",
          "value": "Medical"
        },
        {
          "label": "Staff",
          "value": "Staff"
        },
        {
          "label": "Policy",
          "value": "Policy"
        }
      ],
      "selectionDisplayOrder": 2,
      "bannerOrder": 2,
      "labelDelimiter": "",
      "valueDelimiter": "-",
      "attributeDelimiter": "//"
    },
    "reviewDate": {
      "label": "Review Date",
      "description": "Review Date",
      "type": "date",
      "uiElement": "date",
      "defaultDateTimeline": 10,
      "defaultDateTimelineUnits": "years",
      "selectionDisplayOrder": 3,
      "bannerOrder": 3,
      "selectionDisplayLabel": "To be reviewed on",
      "labelDelimiter": " ",
      "valueDelimiter": " ",
      "attributeDelimiter": "/"
    }
  },
  "layouts": {
    "default": {
      "layoutElements": {
        "classification": {
          "formDisplayOrder": 1
        },
        "distribution": {
          "formDisplayOrder": 2
        },
        "reviewDate": {
          "formDisplayOrder": 3
        }
      }
    }
  }
}

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