# 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://{server-hostname}:8383/dcapi/appctrl/jitpolicy/status/{actionType}` ## Scope `AppControl.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### 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://appdomain/dcapi/appctrl/jitpolicy/status/{actionType} \ --header 'Authorization: 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 Response: 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 } ``` ## Sample Response: HTTP 400 ### Authentication credentials missing or invalid ```json { "errorMessage": "Authentication credentials are missing or invalid", "errorCode": "UNAUTHORIZED" } ``` ## Sample Response: HTTP 401 ### Invalid request parameters ```json { "errorMessage": "Unable to access the requested policy IDs : [1000000]", "errorCode": "1001" } ``` ## Sample Response: 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.