# Approve or decline multiple JIT elevate requests in bulk Approve or decline multiple JIT elevate requests in bulk. ## Endpoint `PUT /dcapi/appctrl/jitpolicy/status/{actionType}` ## Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/appctrl/jitpolicy/status/{actionType}` ## Scope `DesktopCentralCloud.AppControl.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** — string, **Mandatory**: `application/json` - **Accepts** — string, **Mandatory**: `application/json` ### Path Parameters - **actionType** — string, **Mandatory** - Type denoted 5 - Decline, 6 - Approve the JIT Elevation request. ### Request Body `application/json` - JSON Object - **selectedIds** — JSON Object, **Mandatory** - Object containing the list of policy IDs to approve or decline ### Sample Request ```curl curl --request PUT \ --url https://appdomains/dcapi/appctrl/jitpolicy/status/{actionType} \ --header 'Accepts: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"selectedIds":{"ids":[902]}}' ``` ### Sample Request Body **Bulk approve/decline JIT elevate requests** ```json { "selectedIds": { "ids": [ 902 ] } } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - JSON Object - **message** — string - Human-readable status message describing the result of the bulk operation - **status** — boolean - Whether the bulk approve/decline operation succeeded (true) or failed (false) ### HTTP Code 400 Response Body — `application/json` - JSON Object - **errorCode** — string - Error code: INVALID_REQUEST for validation failures - **errorMessage** — string - Detailed validation error message ### HTTP Code 401 Response Body — `application/json` - JSON Object - **errorCode** — string - Error code: INVALID_REQUEST for validation failures - **errorMessage** — string - Detailed validation error message ### HTTP Code 500 Response Body — `application/json` - JSON Object - **errorCode** — string - Internal error code: INTERNAL_ERROR when exception occurs while approve/decline jit policies - **errorMessage** — string - Detailed message: Exception Occurred While approve/decline jit policies ## Possible Response Codes - **200** — HTTP code - **400** — HTTP code - **401** — HTTP code - **500** — HTTP code ## Sample Responses ### HTTP 200 **JIT elevate requests approved successfully** ```json { "message": "Bulk approve successfully for 1 policies", "status": true } ``` **JIT elevate requests approved successfully** ```json { "message": "Bulk decline successfully for 1 policies", "status": true } ``` **JIT elevate requests partially approved/decline** ```json { "message": "Bulk approve was successfully for 1 policies. The following policies could not be processed because the agent was unavailable: JIT For Oracle VirtualBox, JIT For VLC media player", "status": false } ``` ### HTTP 400 **Authentication credentials missing or invalid** ```json { "errorMessage": "Authentication credentials are missing or invalid", "errorCode": "UNAUTHORIZED" } ``` ### HTTP 401 **Invalid request parameters** ```json { "errorMessage": "Unable to access the requested policy IDs : [1000000]", "errorCode": "1001" } ``` ### HTTP 500 **Internal error while approve/decline jit request** ```json { "errorMessage": "Exception Occurred While approve/decline jit policies", "errorCode": "INTERNAL_ERROR" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 50 | **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.