# 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://{server-hostname}:8383/api/v1/mdm/actions/scheduled/{action_name}/validate` ## Scope `MDMDeviceMgmt.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Content-Type | string | Mandatory | application/json | | Accept | string | Mandatory | application/json | ### Path Parameters | Parameter | Type | Required | Description | |---|---|---|---| | action_name | string | Mandatory | Name of the scheduled action | ### Request Body **Content type:** `application/json` | Attribute | Type | Required | Description | |---|---|---|---| | 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: 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 | Code | Type | |---|---| | 202 | HTTP code | ## Sample Response: HTTP 202 ```text 202 Accepted ``` ## Rate Limit ![Help icon](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.