Lock the Samsung Knox container on the device
Lock Knox container on the device
Request URL
https://{serverurl}/api/v1/mdm/devices/{device_id}/knox_actions/lock_container
Request Parameters
- Path Parameters
Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
--url https://appdomain/api/v1/mdm/devices/{device_id}/knox_actions/lock_container
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/api/v1/mdm/devices/{device_id}/knox_actions/lock_container"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
conn.request("POST", "/api/v1/mdm/devices/{device_id}/knox_actions/lock_container")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
response = invokeUrl
[
url: "https://appDomain/api/v1/mdm/devices/{device_id}/knox_actions/lock_container"
type: POST
connection: connection_name
]
info response;
$response = Invoke-WebRequest -Uri 'https://appdomain/api/v1/mdm/devices/{device_id}/knox_actions/lock_container' -Method POST
Sample Response: HTTP 202
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.