# Approve a specific app version in a release label for distribution Approve app version ## Endpoint **POST** `/api/v1/mdm/apps/{app_id}/labels/{release_label_id}/approve` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/apps/{app_id}/labels/{release_label_id}/approve` ## Scope `MDMDeviceMgmt.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory** — `application/json` - **Accept** `string` — **Mandatory** — `application/json` ### Path Parameters - **app_id** `string` — **Mandatory** - Unique identifier of the application. Obtain from the [Get App List](https://www.manageengine.com/products/desktop-central/help/api/onpremise/app-management-get-an-app.html) response. - **release_label_id** `string` — **Mandatory** - Unique identifier of the release label. Obtain from the [Get App Details](https://www.manageengine.com/products/desktop-central/help/api/onpremise/app-management-get-app-details.html) response. ### Request Body `application/json` **JSON Object** - **silent_install** `boolean` — Optional - Allow silent installation. false = manual from App Catalog - **notify_user_via_email** `boolean` — Optional - Notify users by e-mail upon distribution - **retire_old_version** `boolean` — Optional - Retire old versions. If false, old versions removed - **version_label** `string` — Optional - Channel name for the version label (e.g., Production) - **distribute_update** `boolean` — Optional - true = distribute approved version to all devices/groups with older versions ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/apps/{app_id}/labels/{release_label_id}/approve \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"version_label":"Production","retire_old_version":false,"notify_user_via_email":true,"silent_install":true,"distribute_update":true}' ``` ### Sample Request Body Approve version and distribute update to all devices/groups with older versions ```json { "version_label": "Production", "retire_old_version": false, "notify_user_via_email": true, "silent_install": true, "distribute_update": true } ``` Approve version without auto-distributing to existing devices ```json { "version_label": "Stable", "retire_old_version": true, "notify_user_via_email": false, "silent_install": false, "distribute_update": false } ``` ## Possible Response Codes - **204** — HTTP code ## Sample Response: HTTP 204 ```text 204 No Content ``` ![ ](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **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.