# Add a new app to the blocklist repository Add new app to repository for blocklisting ## Endpoints **POST** `/api/v1/mdm/blacklist/apps` ## Request URL `https://`[{serverurl}](https://www.manageengine.com/mobile-device-management/help/api/cloud/oauth-authentication-endpoint-domain.html)`/api/v1/mdm/blacklist/apps` ### Scope `MDMOnDemand.MDMInventory.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory** — `application/json` - **Accept** `string` — **Mandatory** — `application/json` ### Query Parameters - **validate** `boolean` — Optional When true, only validates the request and returns validation errors without persisting changes. Default: false ### Request Body `application/json` - `JSON object` - **apps** `JSON array` — **Mandatory** Array of app objects to add to the blocklist repository ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/blacklist/apps \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"apps":[{},{}]}' ``` ## Sample Request Body ### Add two apps (Android and iOS) to the blocklist repository ```json { "apps": [ { "identifier": "com.manageengine.mdm.android", "appname": "Zylker MDM", "platform": 2 }, { "identifier": "com.zylker.chatapp", "appname": "Chat App", "platform": 1 } ] } ``` ### Add a single Android app to the blocklist repository ```json { "apps": [ { "identifier": "com.zylker.socialapp", "appname": "Social App", "platform": 2 } ] } ``` ## Response Parameters ### HTTP Code 200 #### Response Body: `application/json` - `JSON object` - **apps** `JSON array` Array of apps that were added to the blocklist repository with their assigned app group IDs ## Possible Response Codes - **200** — HTTP code ## Sample Response: HTTP 200 Apps successfully added to the blocklist repository with assigned app group IDs ```json { "apps": [ { "identifier": "com.manageengine.mdm.android", "appname": "Zylker MDM", "appgroupid": 9007199254741064, "platform": 2 }, { "identifier": "com.zylker.chatapp", "appname": "Chat App", "appgroupid": 9007199254741068, "platform": 1 } ] } ``` ![](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.