AppleTV API rename / Last Inventory Update issue

luke_reagor
Contributor II

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 2

cdenesha
Valued Contributor III

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

luke_reagor
Contributor II

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. :(