Actions31
- Alert Actions
- Application Actions
- Billing Actions
- Device Actions
- Fact Actions
- Instruction Actions
- Policy Actions
Device → Run Command
AI-generatedSummary
Run a command on a device
Inputs
- deviceId (required) — The ID of the device
- command (required) — Command to run on the device, selecting from restart, shutdown, lock, clear_passcode, refresh_facts
- additionalFields — Optional additional fields such as a message to display to the user
Output shape
object
Returns the Addigy API response object, typically containing a success flag and possibly device_id, policy_id or other command‑specific fields.
Examples
Example 1: Restart a device
deviceId = 12345, command = "restart", additionalFields = {"message":"Rebooting device..."}
Example 2: Clear passcode
deviceId = "abcde", command = "clear_passcode", additionalFields = {}