Skip to main content
Question

AppleTV API rename / Last Inventory Update issue

  • November 7, 2019
  • 2 replies
  • 16 views

Forum|alt.badge.img+9

It appears that setting the name of an ATV record via API causes the Last Inventory Update to update its timestamp... even if the ATV is not turned on.

Here's the command that we're using that causes the timestamp to change.

curl -u $jssuser:$jsspass -X PUT -H "Content-Type: application/xml" -H "Accept: application/xml" -d "<mobile_device><general><display_name>$new_device_name</display_name><device_name>$new_device_name</device_name><name>$new_device_name</name></general></mobile_device>" https://jamf.domain.com:8443/JSSResource/mobiledevices/id/$ipad_id

Can anyone verify if this is intended or not? It seems like a bug since it makes it look like the device has sent in inventory information when it actually has not. This is happening on Jamf 10.16.1.

2 replies

cdenesha
Forum|alt.badge.img+14
  • Honored Contributor
  • November 8, 2019

You've discovered that this is how it works, in that it is how it has been built. Here are two FRs:

Inventory Time becomes incorrect with API

Rest API to not cause full inventory update


Forum|alt.badge.img+9
  • Author
  • Contributor
  • November 8, 2019

Thanks for the info, @cdenesha. After talking to Jamf support, they said it was a bug. So, maybe they will fix it. Although, seeing how those two FR are so old, it's not looking likely. :(