# Lock the Samsung Knox container on the device Lock Knox container on the device ## Endpoint [POST /api/v1/mdm/devices/{device_id}/knox_actions/lock_container](https://www.manageengine.com/mobile-device-management/help/api/cloud/action-lock-knox-container.html) ## Request URL https://*[{serverurl}](https://www.manageengine.com/mobile-device-management/help/api/cloud/oauth-authentication-endpoint-domain.html)*/api/v1/mdm/devices/{device_id}/knox_actions/lock_container ### Request Parameters #### Path Parameters - **device_id** `string` — **Mandatory** - Unique identifier of the device. Obtain from the [Get Device List](https://www.manageengine.com/mobile-device-management/help/api/cloud/devices-get-device-list.html) response ### Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/devices/{device_id}/knox_actions/lock_container ``` ## Responses ### Possible Response Codes - **202** `HTTP code` ### Sample Response: HTTP 202 ```text 202 Accepted ```