# Validate groups on which a scheduled action needs to be executed Validate the schedule action is applicable for the group or device. ## Endpoint **POST** `/api/v1/mdm/actions/scheduled/{action_name}/validate` ## Request URL `https://{serverurl}/api/v1/mdm/actions/scheduled/{action_name}/validate` ## Scope `MDMOnDemand.MDMDeviceMgmt.CREATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — Mandatory: `application/json` - **Accept** `string` — Mandatory: `application/json` ### Path Parameters - **action_name** `string` — Mandatory Name of the scheduled action ### Request Body `application/json` - **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 ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/v1/mdm/actions/scheduled/{action_name}/validate \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"action_name":"restart","groups":["9007199254741037","9007199254741038","9007199254741039"]}' ``` ### Sample Request Body Validate 3 groups for a restart scheduled action. ```json { "action_name": "restart", "groups": [ "9007199254741037", "9007199254741038", "9007199254741039" ] } ``` ## Possible Response Codes - **202** HTTP code ### Sample Response: HTTP 202 ```text 202 Accepted ``` ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.