Validate groups on which a scheduled action needs to be executed Validate the schedule action is applicable for the group or device
Request URL https://{serverurl} /api/v1/mdm/actions/scheduled/{action_name}/validate
Scope
Header Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Request Parameters - Path Parameters action_name string Mandatory
Name of the scheduled action
- Request Body application/json JSON object
Hide Sub-Attributes groups array Mandatory
Array of group IDs to validate for the scheduled action (required)
action_name string Mandatory
Name of the action: restart or shutdown
Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
--url https://appdomain/api/v1/mdm/actions/scheduled/{action_name}/validate \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--data '{"action_name":"restart","groups":["9007199254741037","9007199254741038","9007199254741039"]}'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/actions/scheduled/{action_name}/validate"))
.header("content-type", "application/json")
.header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"action_name\":\"restart\",\"groups\":[\"9007199254741037\",\"9007199254741038\",\"9007199254741039\"]}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
payload = "{\"action_name\":\"restart\",\"groups\":[\"9007199254741037\",\"9007199254741038\",\"9007199254741039\"]}"
headers = {
'content-type': "application/json",
'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52"
}
conn.request("POST", "/api/v1/mdm/actions/scheduled/{action_name}/validate", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Content-Type", "application/json");
data=Map();
data.put("action_name","value");
data_groups=List();
data.put("groups",data_groups);
response = invokeUrl
[
url: "https://appDomain/api/v1/mdm/actions/scheduled/{action_name}/validate"
type: POST
headers: headersMap
body: data
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/api/v1/mdm/actions/scheduled/{action_name}/validate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{"action_name":"restart","groups":["9007199254741037","9007199254741038","9007199254741039"]}'▼ Show full
Sample Request Body Validate 3 groups for a restart scheduled action
Copied!
{
"action_name": "restart",
"groups": [
"9007199254741037",
"9007199254741038",
"9007199254741039"
]
}
▼ Show full
Sample Response: HTTP 202
Duration: 1 minute | Threshold: 30 | 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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.