Retrieves all available data classes

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Retrieves all available data classes for data classification rules.

Request URL

https://{serverurl}/endpointdlp/api/data-classification/data-classes

Scope

DesktopCentralCloud.EndpointDLP.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/getDataClass.v1+jsonapplication/getDataClass.v1+jsonCopied!

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomains/endpointdlp/api/data-classification/data-classes \
  --header 'Accept: application/getDataClass.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
dataClassesJSON Array

List of available data classes

Show Sub-Attributes
JSON Object
Show Sub-Attributes
dataClassIdstring

Unique identifier of the data class

dataClassNamestring

Name of the data class

- HTTP code 500

Response Body - application/json
JSON Object
Hide Sub-Attributes
errorCodestring

Internal error code (INTERNAL_ERROR) returned when fetching DLP metadata (data category/class/country) fails

errorMessagestring

Detailed message including the underlying exception message

Possible Response Codes

200HTTP code
500HTTP code

Sample Response: HTTP 200

Successful retrieval of data classes

Copied!
  {
    "dataClasses": [
      {
        "dataClassName": "All",
        "dataClassId": "0"
      },
      {
        "dataClassName": "Source code",
        "dataClassId": "4"
      }
    ]
  }
                
Show full

Sample Response: HTTP 500

Internal server error

Copied!
  {
    "errorMessage": "Exception occurred while fetching DataClass :: <exception message>",
    "errorCode": "INTERNAL_ERROR"
  }
                
Show full

Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.