Skip to main content
Question

Modify Drop down EA using Jamf API


Forum|alt.badge.img+21

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

Forum|alt.badge.img

Forum|alt.badge.img+21
  • Author
  • Honored Contributor
  • 970 replies
  • August 26, 2022
johnpatrick_lon wrote:

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


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3536 replies
  • August 26, 2022
tkimpton wrote:

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


@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/261269

You can use that script to see what modifications are needed to change the script @johnpatrick_lon referred you to.


Forum|alt.badge.img+21
  • Author
  • Honored Contributor
  • 970 replies
  • August 26, 2022
sdagley wrote:

@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/261269

You can use that script to see what modifications are needed to change the script @johnpatrick_lon referred you to.


yes ive already looked at that.


stevewood
Forum|alt.badge.img+35
  • Employee
  • 1797 replies
  • August 26, 2022

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.


Forum|alt.badge.img+21
  • Author
  • Honored Contributor
  • 970 replies
  • August 26, 2022
stevewood wrote:

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.


ok thanks for letting me know.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings