What is the proper format to the xml payload sent to /JSSResource/computers/id/{id}? Do I send only <extension_attribute>? Do I send the entire XML set with just the changes needed?
Here is a representation of a curl call that I'm trying (from Postman):
curl -X PUT
'https://Your.Server.Name:8443/JSSResource/computers/id/4?id=4'
-H 'Authorization: Basic dGVAFAVADdaVAVaZXM='
-H 'Cache-Control: no-cache'
-H 'Content-Type: text/xml'
-d ' <extension_attributes>
<extension_attribute>
<id>2</id>
<name>OU</name>
<type>String</type>
<value>OUT STRING</value>
</extension_attribute>
</extension_attributes>
'
Which produces this:
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Bad Request</p>
<p>Error in XML file</p>
Many thanks!