# Checks whether a data group name is valid Checks whether a data group name is valid (not duplicate) for the customer. Returns true if valid, false if name already exists. ## Endpoint `GET /endpointdlp/api/data-classification/data-group/data-group-name` ### Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/endpointdlp/api/data-classification/data-group/data-group-name` ### Scope `DesktopCentralCloud.EndpointDLP.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers | Name | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `text/plain` | #### Query Parameters | Name | Type | Required | Description | |---|---|---|---| | dataGroupName | string | Mandatory | Data group name to validate | ### Sample Request ```curl curl --request GET \ --url 'https://appdomains/endpointdlp/api/data-classification/data-group/data-group-name?dataGroupName=PII Data Group' \ --header 'Accept: text/plain' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `text/plain` | Type | |---| | string | ### HTTP Code 500 Response Body: `application/json` | Type | |---| | JSON Object | #### Attributes | Name | Type | Description | |---|---|---| | errorCode | string | Internal error code returned when data group name validation fails server-side | | errorMessage | string | Failure message describing why the data group name could not be validated | ### Sample Response: HTTP 200 Data group name is valid ```json "true" ``` ### Sample Response: HTTP 500 Validation error ```json { "errorMessage": "Exception occurred while checking DataGroup name validity :: ", "errorCode": "INTERNAL_ERROR" } ``` ![ ](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.