Hi,
I’ve been playing with the restful API for a while now and find it extremely useful in gathering report details. I am now looking to modify user details, passwords.
Using the restful API i can retrieve user details from the system :
GET http://servername:6405:biprws/v1/users/userid
However when I try to amend the user details I keep getting a server 500 message returned. I’ve activated the error stack on the container server, also tried putting the trace level to high, but can’t see anything obvious.
PUT http://servername:6405:biprws/v1/users/userid
Below is a copy of the message body I’m sending :
<entry xmlns="http://www.w3.org/2005/Atom">
<title type="text">user</title>
<updated>1992-09-03T17:15:00.000+02:00</updated>
<link href="http://clinpathauto3:6405/biprws/v1/users/32786" rel="alternate" />
<content type="application/xml">
<attrs xmlns="http://www.sap.com/rws/bip">
<attr name="cuid" type="string">ATmCmJz5tNNMqqyEVv1IRUw</attr>
<attr name="forcepasswordchange" type="bool">true</attr>
<attr name="id" type="string">32786</attr>
<attr name="newPassword" type="string">newPassword</attr>
</attrs>
</content>
</entry>
Has anybody managed to get this to work?
Cheers
Alistair
FrustratedScot (BOB member since 2006-04-27)