Hey All!
I'm fairly comfortable with Casper's API manipulation but I've been wracking my brain trying to figure out this issue (maybe it's post vacation brain?).
I have an extension attribute that's of type Pop-Up Menu. I've already populated the values for Pop-Up Menu.
I'm basically just trying to update the Pop-Up value for each machine via the API. Except every time I try, I get a 409 - Conflict error.
I'm updating the extension attribute by doing the following:
#!/bin/sh
JSSHostname="$JSSURL/JSSResource/computers/serialnumber/$1/subset/extensionattributes"
XMLTOWRITE="<computer><extension_attributes><extension_attribute><name>Deskside Support By</name><value>$2</value></extension_attribute></extension_attributes></computer>"
completeCurlCommand=`curl -s -f -k -u $APIUser:$APIPassword -X PUT -H "Content-Type: text/xml" -d "<?xml version="1.0" encoding="ISO-8859-1"?>$XMLTOWRITE" $JSSHostname --verbose`
I have no issues using the code above to update other extension attributes. It just seems to be when the extension attribute is of type Pop-Up menu and I try to change the Pop-Up value from one value to another that I get this issue. I have verified that the updated value I'm trying to insert does already exist in the Pop-Up menu values.
Any thoughts would be greatly appreciated! JSS version 9.81.