[API Question] Wallpaper Mobile Device Command

brad
Contributor

Good afternoon,

I am trying to figure out the syntax for the wallpaper API. I have tried a number of combinations and no luck.

Anyone have an idea?

It looks like you would use the POST verb.

The URL looks like it would be:

https://jss.com:8443/JSSResource/mobiledevicecommands/command/wallpaper

The XML appears that it would be something like this:

<mobile_device_commands>
  <size>1</size>
  <mobile_device_command>
    <id>XXX</id>
    <command>Wallpaper</command>
    <wallpaper_setting>1</wallpaper_setting>
    <wallpaper_id>DeviceName</wallpaper_id> or <wallpaper_content>BASE 64 Encoded jpg or png</wallpaper_content>
    <mobile_devices>
      <size>1</size>
      <mobile_device>
        <id>12345</id>
      </mobile_device>
    </mobile_devices>
  </mobile_device_command>
</mobile_device_commands>

Here is the documentation for /mobiledevicecommands/command:

20678705545944799471b235505450b6

Any help would be appreciated!

Thanks!

Brad

1 ACCEPTED SOLUTION

brad
Contributor

To anyone who might be interested. I was able to get the wallpaper api command to work. I have posted an example to my Gist on Github.

https://gist.github.com/bradschm

Cheers!

-Brad

View solution in original post

2 REPLIES 2

brad
Contributor

To anyone who might be interested. I was able to get the wallpaper api command to work. I have posted an example to my Gist on Github.

https://gist.github.com/bradschm

Cheers!

-Brad

estes
New Contributor III

@brad

Can I send this in a curl command?

curl -k -u User:password1 -H "Content-Type: text/xml" https://JSS:8443/JSSResource/mobiledevicecommands/command/Wallpaper -d “<?xml version="1.0" encoding="UTF-8" standalone="no"?><wallpaper_setting>1</wallpaper_setting><wallpaper_id>1234</wallpaper_id><mobile_devices><mobile_device><id>1000</id></mobile_device></mobile_devices>” -X POST

I can't get this to go. Is this a syntax issue?