Data Classification API
-
- UpdatedJan 30, 2025
- 6 minutes to read
- Yokohama
- API reference
The Data Classification API provides endpoints to group data by type.
- Assign data classifications to existing dictionary entries.
- Look up the data classifications for specific dictionary entries.
- Remove all data classifications associated with specific dictionary entries.
- Retrieve a list of all data classifications available in the current domain.
This API requires the Data Classification [com.glide.data_classification] plugin.
For more information, see Data Classification.
Data Classification - GET /data_classification/getAllDataClasses
Returns a list of all data classifications available in the current domain.
Requires the admin, data_classification_admin, or data_classification_auditor role.
URL format
Default URL: /api/now/data_classification/getAllDataClasses
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
Response body parameters (JSON or XML)
Example: cURL request
Retrieves a list of all the available data classifications.
Data Classification - POST /data_classification/classify
Assigns pre-defined or user-defined data classifications to existing dictionary entries.
Requires the admin or data_classification_admin role.
URL format
Default URL: /api/now/data_classification/classify
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Name | Description |
---|---|
dictionary_entries | Required. Sys_ids of the records you want to classify. Entered as a comma-separated list enclosed in a string. Table: Dictionary [sys_dictionary] table Data type: String |
data_classes | Required. Sys_ids of the data classifications you want to assign. Entered as a comma-separated list enclosed in a string. Table: Data Classification [data_classification] Data type: String |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
result | Message describing the result of the operation.
Data type: String |
Example: cURL request
Assigns a data classification to a dictionary entry.
Data Classification - POST /data_classification/clear
Removes all data classifications for the specified dictionary entries.
Requires the admin or data_classification_admin role.
URL format
Default URL: /api/now/data_classification/clear
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Name | Description |
---|---|
dictionary_entries | Required. Sys_ids of the records you want to remove classifications from. Entered as a comma-separated list enclosed in a string. Table: Dictionary [sys_dictionary] Data type: String |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Name | Description |
---|---|
result | Message describing the result of the operation.
Data type: String |
Example: cURL request
Clears the data classifications for a dictionary entry.
Data Classification - POST /data_classification/getClassification
Retrieves all data classifications for the specified dictionary entries.
Requires the admin, data_classification_admin, or data_classification_auditor role.
URL format
Default URL: /api/now/data_classification/getClassification
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Name | Description |
---|---|
dictionary_entries | Required. Sys_ids of the records you want to retrieve classifications for. Entered as a comma-separated list enclosed in a string. Table: Dictionary [sys_dictionary] Data type: String |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Content-Type | Data format of the
request body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Successful. The request was successfully processed. |
500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
Response body parameters (JSON or XML)
Example: cURL request
Get the data classifications associated with a specific dictionary entry.