# Blocklist specified apps on device groups Blacklist Apps in groups **Endpoint:** `POST /api/v1/mdm/blacklist/groups` ## Request ### Request URL `https://[{serverurl}](https://www.manageengine.com/mobile-device-management/help/api/cloud/oauth-authentication-endpoint-domain.html)/api/v1/mdm/blacklist/groups` ### Scope `MDMOnDemand.MDMInventory.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** `string` — **Mandatory** — `application/json` - **Accept** `string` — **Mandatory** — `application/json` #### Request Body `application/json` - `resource_ids` `array` — **Mandatory** - Array of device or group resource IDs to apply the blocklist on. Obtain device IDs from the [Get Device List](https://www.manageengine.com/mobile-device-management/help/api/cloud/devices-get-device-list.html) response or group IDs from the [Get Group List](https://www.manageengine.com/mobile-device-management/help/api/cloud/groups-get-group-list.html) response. - `app_group_ids` `array` — **Mandatory** - Array of app group IDs to blocklist on the specified devices or groups. Obtain from the [Get Blocklist Status](https://www.manageengine.com/mobile-device-management/help/api/cloud/blocklist-get-blocklist-status.html) response. ### Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/blacklist/groups \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"app_group_ids":[1,2,3],"resource_ids":[1,2,3]}' ``` ### Sample Request Body Blocklist 3 app groups on 3 device groups ```json { "app_group_ids": [ 1, 2, 3 ], "resource_ids": [ 1, 2, 3 ] } ``` ## Response ### Response Parameters #### HTTP Code 200 Response Body — `application/json` - `resource_ids` `array` - Array of device or group resource IDs on which the blocklist was applied. ### Possible Response Codes - `200` — HTTP code ### Sample Response: HTTP 200 Blocklist successfully applied to groups ```json { "resource_ids": [ 1, 2, 3 ] } ``` ## Rate Limit **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.