# Stop a scheduled action from being executed on devices in groups Delete the repeated scheduled commands. ## Endpoint `DELETE /api/v1/mdm/actions/scheduled/{action_name}` ## Request URL `https://{server-hostname}:8383/api/v1/mdm/actions/scheduled/{action_name}` ## Scope `MDMDeviceMgmt.DELETE` ## Header `Authorization: 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` `JSON Object` - **group_action_id** `long` — Mandatory ID for the action scheduled to be executed on a group (required) - **action_name** `string` — Mandatory Name of the action: restart or shutdown ## Sample Request ```curl curl --request DELETE \ --url https://appdomain/api/v1/mdm/actions/scheduled/{action_name} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"action_name":"restart","group_action_id":9007199254741060}' ``` ## Sample Request Body Suspend a restart schedule by its group_action_id ```json { "action_name": "restart", "group_action_id": 9007199254741060 } ``` ## 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:** 60 | **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.