Skip to main content
Solved

[API Question] Wallpaper Mobile Device Command


Forum|alt.badge.img+15
  • Contributor
  • 67 replies

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:

Any help would be appreciated!

Thanks!

Brad

Best answer by brad

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 original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+15
  • Author
  • Contributor
  • 67 replies
  • Answer
  • December 4, 2015

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


Forum|alt.badge.img+4
  • Contributor
  • 22 replies
  • February 27, 2019

@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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings