Checks whether a data rule name is valid

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

Checks whether a given data rule name is valid (not duplicate) for the customer. Returns an empty response body if the name is valid, or the plain text message 'This Rule Name already exist' if the name is already taken.

Request URL

https://{serverurl}/endpointdlp/api/data-classification/data-rule/data-rule-name

Scope

DesktopCentralCloud.EndpointDLP.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
text/plaintext/plainCopied!

- Query Parameters

dataRuleNamestringMandatory

Data rule name to validate (max 255 chars)

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url 'https://appdomains/endpointdlp/api/data-classification/data-rule/data-rule-name?dataRuleName=SSN Rule' \
  --header 'Accept: text/plain' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - text/plain
string

- HTTP code 500

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

Internal error code returned when data rule name validation fails server-side

errorMessagestring

Failure message describing why the data rule name could not be validated

Possible Response Codes

200HTTP code
500HTTP code

Sample Response: HTTP 200

Data rule name already exists

Copied!
"This Rule Name already exist"
Show full

Sample Response: HTTP 500

Data rule name already exists

Copied!
  {
    "errorMessage": "Data Rule Name already exists :: <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.