# Blocklist specified apps on individual devices Blacklist Apps in devices ## Endpoint `POST /api/v1/mdm/blacklist/devices` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/blacklist/devices` ## Scope `MDMInventory.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — Mandatory: `application/json` - **Accept** `string` — Mandatory: `application/json` ### Request Body `application/json` **JSON Object** - **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/devices \ --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 devices ```json { "app_group_ids": [ 1, 2, 3 ], "resource_ids": [ 1, 2, 3 ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` **JSON Object** - **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 devices ```json { "resource_ids": [ 1, 2, 3 ] } ``` ![](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.