# Blocklist specified apps on device groups Blacklist Apps in groups ## Endpoint **POST** `/api/v1/mdm/blacklist/groups` ## Request ### Request URL `https://{server-hostname}:8383/api/v1/mdm/blacklist/groups` ### Scope `MDMInventory.CREATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Content-Type | string | Mandatory | `application/json` | | Accept | string | Mandatory | `application/json` | #### Request Body `application/json` | Parameter | Type | Required | Description | |---|---|---|---| | 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/products/desktop-central/help/api/onpremise/devices-get-device-list.html) response or group IDs from the [Get Group List](https://www.manageengine.com/products/desktop-central/help/api/onpremise/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/products/desktop-central/help/api/onpremise/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: 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` | Parameter | Type | Description | |---|---|---| | resource_ids | array | Array of device or group resource IDs on which the blocklist was applied | ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | ### Sample Response: HTTP 200 Blocklist successfully applied to groups ```json { "resource_ids": [ 1, 2, 3 ] } ``` ## API 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.