Posted on 01-20-2022 01:56 PM
Hey Everybody,
I'm having some trouble with my scripting. I'm attempting to view an iPad's extension attributes, and then update them if needed, but my cURL request always come back with the same error: "The request requires user authentication" -- which I'm using. Works for everything else, but not for extension attributes. Maybe my code is wrong? Here's what I have:
curl -X GET -H "accept: application/xml" -H "authorization: Basic ${jssAuth}" "${jssURL}/JSSResource/mobiledeviceextensionattributes/id/$deviceID"
Thanks,
-Rob
Solved! Go to Solution.
Posted on 01-20-2022 02:15 PM
Just a note, if you are trying to look up the extension attributes for a specific iPad, that's not the right API endpoint.
The ID number at the end of that api call is for extension attribute ID number, not mobile device ID.
If you were looking for the value in an extension attribute for a specific iPad, you would probably need to use the
/JSSResource/mobiledevices/id/$deviceID/subset/extension_attributes
to see the EA values for a given iPad
Posted on 01-20-2022 02:15 PM
Just a note, if you are trying to look up the extension attributes for a specific iPad, that's not the right API endpoint.
The ID number at the end of that api call is for extension attribute ID number, not mobile device ID.
If you were looking for the value in an extension attribute for a specific iPad, you would probably need to use the
/JSSResource/mobiledevices/id/$deviceID/subset/extension_attributes
to see the EA values for a given iPad
Posted on 01-20-2022 02:24 PM
Thank you very much. That was exactly it.