Validate groups on which a scheduled action needs to be executed

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Validate the schedule action is applicable for the group or device

Request URL

https://{server-hostname}:8383/api/v1/mdm/actions/scheduled/{action_name}/validate

Scope

MDMDeviceMgmt.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/jsonapplication/jsonCopied!
AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Path Parameters

action_namestringMandatory

Name of the scheduled action

- Request Body

application/json
JSON Object
Hide Sub-Attributes
groupsarrayMandatory

Array of group IDs to validate for the scheduled action (required)

action_namestringMandatory

Name of the action: restart or shutdown

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
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

Copied!
  {
    "action_name": "restart",
    "groups": [
      "9007199254741037",
      "9007199254741038",
      "9007199254741039"
    ]
  }
                
Show full

Possible Response Codes

202HTTP code

Sample Response: HTTP 202

Copied!
202 Accepted
Show full

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.