HomeGuidesRecipesAPI ReferenceChangelog
Log In
API Reference

Creates a new mobile device command

The chart below includes additional requirements for usage of specific commands

commandParametersRequirementsValues
DeviceNamedevice_nameSupervised Devicestring
DeviceLocationN/ASupervised and in lost modeN/A
DeviceLocklock_messageoptionalstring
DisableLostModeN/ASupervised and in lost modeN/A
EnableLostModelost_mode_messageSupervised device (required if lost_mode_phone is not set)string
EnableLostModelost_mode_phoneSupervised device (required if lost_mode_message is not set)string
EnableLostModelost_mode_footnoteoptionalstring
EnableLostModealways_enforce_lost_modeoptional (defaults to 'true')boolean
EnableLostModelost_mode_with_soundoptional (defaults to 'false')boolean
EraseDevice (deprecated on 2023-06-21)preserve_data_planoptional (defaults to 'false')boolean
EraseDevice (deprecated on 2023-06-21)disallow_proximity_setupoptional (defaults to 'false')boolean
EraseDevice (deprecated on 2023-06-21)clear_activation_lockoptional (defaults to 'false')boolean
PasscodeLockGracePeriodpasscode_lock_grace_periodShared iPadseconds (integer)
PlayLostModeSoundN/ASupervised and in lost modeN/A
RestartDeviceN/ASupervised deviceN/A
ScheduleOSUpdate (deprecated on 2022-10-17)install_actioniOS 9 - 10.2, enrolled via a Prestage enrollment; and/or iOS 10.3 or later; tvOS 12 or later1 = Download the update for users to install, 2 = Download and install the update, and restart devices after installation
ScheduleOSUpdate (deprecated on 2022-10-17)product_versioniOS 11.3 or later, tvOS 12.2 or laterstring
SettingsDisableBluetoothN/AiOS 11.3+ and SupervisedN/A
SettingsEnableBluetoothN/AiOS 11.3+ and SupervisedN/A
ShutDownDeviceN/ASupervised deviceN/A
Wallpaperwallpaper_settingsSupervised device1 = Lock screen, 2 = Home screen, 3 = both
Wallpaperwallpaper_idSupervised device (required if wallpaper_content is not set)Jamf Pro icon ID (integer)
Wallpaperwallpaper_contentSupervised device (required if wallpaper_id is not set)base64 encoded PNG or JPEG
RefreshCellularPlanse_sim_server_urlN/AThis URL is obtained from each carrier separately

Below is a complete list of the supported values for the command element.

  • BlankPush
  • ClearPasscode
  • ClearRestrictionsPassword
  • DeviceLocation
  • DeviceLock
  • DeviceName
  • DisableLostMode
  • EnableLostMode
  • EraseDevice
  • PasscodeLockGracePeriod
  • PlayLostModeSound
  • RefreshCellularPlans
  • RestartDevice
  • ScheduleOSUpdate (deprecated)
  • Settings
  • SettingsDisableAppAnalytics
  • SettingsDisableBluetooth
  • SettingsDisableDataRoaming
  • SettingsDisableDiagnosticSubmission
  • SettingsDisablePersonalHotspot
  • SettingsDisableVoiceRoaming
  • SettingsEnableAppAnalytics
  • SettingsEnableBluetooth
  • SettingsEnableDataRoaming
  • SettingsEnableDiagnosticSubmission
  • SettingsEnablePersonalHotspot
  • SettingsEnableVoiceRoaming
  • ShutDownDevice
  • UnmanageDevice
  • UpdateInventory
  • Wallpaper

Below you will find a list of sample request bodies for commands that have additional parameters beyond the command.

<mobile_device_command>
	<general>
		<command>DeviceName</command>
		<device_name>My iPad</device_name>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>DeviceLock</command>
		<lock_message>Sample Message</lock_message>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>EnableLostMode</command>
		<lost_mode_message>This device has been reported as lost and its location has been identified, please return before authorities arrive.</lost_mode_message>
		<lost_mode_phone>555-555-5555</lost_mode_phone>
		<lost_mode_footnote>This is an optional footnote</lost_mode_footnote>
		<always_enforce_lost_mode>false</always_enforce_lost_mode>
		<lost_mode_with_sound>false</lost_mode_with_sound>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>EraseDevice</command>
		<preserve_data_plan>false</preserve_data_plan>
		<disallow_proximity_setup>false</disallow_proximity_setup>
		<clear_activation_lock>false</clear_activation_lock>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>PasscodeLockGracePeriod</command>
		<passcode_lock_grace_period>60</passcode_lock_grace_period>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>ScheduleOSUpdate</command>
        <install_action>2</install_action>
        <product_version>12.5.5</product_version>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>5</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
<mobile_device_command>
	<general>
		<command>Wallpaper</command>
		<wallpaper_settings>1</wallpaper_settings>
		<wallpaper_id>1</wallpaper_id>
    <wallpaper_content></wallpaper_content>
	</general>
	<mobile_devices>
		<mobile_device>
			<id>4</id>
		</mobile_device>
	</mobile_devices>
</mobile_device_command>
Language
Credentials
Basic
base64
: