# Checks whether a data rule name is valid 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. ## Endpoints `GET /endpointdlp/api/data-classification/data-rule/data-rule-name` ## Request URL `https://{server-hostname}:8383/endpointdlp/api/data-classification/data-rule/data-rule-name` ### Scope `EndpointDLP.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory: `text/plain` ## Sample Request ```curl curl --request GET \ --url https://appdomain/endpointdlp/api/data-classification/data-rule/data-rule-name \ --header 'Accept: text/plain' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 Response Body — `text/plain` `string` ### HTTP code 500 Response Body — `application/json` `JSON object` - **errorCode** `string`: Internal error code returned when data rule name validation fails server-side - **errorMessage** `string`: Failure message describing why the data rule name could not be validated ## Possible Response Codes - **200** — HTTP code - **500** — HTTP code ## Sample Response: HTTP 200 Data rule name already exists ```json "This Rule Name already exist" ``` ## Sample Response: HTTP 500 Data rule name already exists ```json { "errorMessage": "Data Rule Name already exists :: ", "errorCode": "INTERNAL_ERROR" } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.