I have the following line of code that works to update the nr object(the main table for CIs) using the put method.
string putBody = "<nr>" + "<zRelayMachine>1</zRelayMachine>" + "<description>" + "</description>" + "</nr>";
when I tried to change it to update the extension table har_worx where the additional work station specific fields live I keep getting a 400 bad request error.
Here's an example of a call that's failing using the put method:
Any thoughts on what I'm missing or doing incorrectly?
did yo try
<har_worx><proc_type>2500 MHz Core i7-D2860QM<proc_type></har_worx>
I discovered I was missing the / to close the proc_type tag :-/
Yes, you can use PUT requests to update the associated har_worx record. Tthe har_worx record doesn't need to be created directly, creating the NR record with the class Hardware.Workstation will automatically create the har_worx record.
Here's an example PUT URL/Body.
Request type: PUT
Also, you don't need to encode the content body, just the URL.
Did the information provided by gbruneau help you?
If so, please mark Grant's response as correct so that this thread can be closed.