Posted on 08-26-2022 05:19 AM
Hi all,
Please can someone provide an example using the Jamf Pro API to change a drop down EA on a computer record?
Im currently using this Solved: Updating Pop-Up Extension Attribute Value via API - Jamf Nation Community - 87213 for the classic api.
Thanks
Posted on 08-26-2022 05:36 AM
Posted on 08-26-2022 05:42 AM
Thanks but thats using the classic api. Im looking for the jamf pro api using bearer tokens.
Posted on 08-26-2022 06:22 AM
@tkimpton The Classic API can use Bearer Token auth. See this post for an example: https://community.jamf.com/t5/jamf-pro/bearer-token-api-and-adding-computer-to-static-group/m-p/2612...
You can use that script to see what modifications are needed to change the script @johnpatrick_lon referred you to.
Posted on 08-26-2022 06:32 AM
yes ive already looked at that.
08-26-2022 07:21 AM - edited 08-26-2022 07:21 AM
I do not believe there is an endpoint in the JPAPI to update an EA yet. You would do that on the computer record, and the only POST endpoint is to "Upload attachment and assign to computer". Unless I'm missing something, you'll need to use the Classic API for this until that endpoint is moved over to the JPAPI.
Posted on 08-26-2022 07:42 AM
ok thanks for letting me know.