# Add a new app to the blocklist repository Add new app to repository for blocklisting ## Endpoint **POST** `/api/v1/mdm/blacklist/apps` ## Request ### Request URL `https://{server-hostname}:8383/api/v1/mdm/blacklist/apps` ### Scope `MDMInventory.CREATE` ### Header `Authorization: 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?validate=SOME_BOOLEAN_VALUE' \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"apps":[{"identifier":"com.manageengine.mdm.android","appname":"Zylker MDM","platform":2},{"identifier":"com.zylker.chatapp","appname":"Chat App","platform":1}]}' ``` ### 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 ### 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 } ] } ``` ## 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.