Modify Drop down EA using Jamf API

tkimpton
Valued Contributor II

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

6 REPLIES 6

Thanks but thats using the classic api. Im looking for the jamf pro api using bearer tokens.

sdagley
Esteemed Contributor II

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

tkimpton
Valued Contributor II

yes ive already looked at that.

stevewood
Honored Contributor II
Honored Contributor II

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.

tkimpton
Valued Contributor II

ok thanks for letting me know.