<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Great, thanks. I was just looking at the content, it did not occur to me to look at the headers as well.</p>
<p><br>
</p>
<p>Pertti<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Lähettäjä:</b> midPoint <midpoint-bounces@lists.evolveum.com> käyttäjän puolestaFlorin. Stingaciu <fstingaciu@mirantis.com><br>
<b>Lähetetty:</b> 27. lokakuuta 2016 22:04<br>
<b>Vastaanottaja:</b> midPoint General Discussion<br>
<b>Aihe:</b> Re: [midPoint] REST examples</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hey, 
<div><br>
</div>
<div>If you look at the Location Header in the Response following the creation of any object, you'll find the OID you just created. Using the -D switch on curl should dump the response headers in stdout.</div>
<div><br>
</div>
<div>-F </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 27, 2016 at 4:44 AM, Pertti Kellomäki <span dir="ltr">
<<a href="mailto:pertti.kellomaki@datactica.fi" target="_blank">pertti.kellomaki@datactica.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Ok, got that figured out by myself. I was just confused by the relatively complex xml files in the samples directory. Simply post something like<br>
<br>
<user><name>newuser</name><<wbr>fullName>New User</fullName><givenName>New<<wbr>/givenName><familyName>User</<wbr>familyName></user><br>
<br>
My next question is, can I get the oid of the newly created object back somehow? The POST does not seem to return anything. Do I search with the name of the new object or something else?<br>
<br>
Thanks, Pertti<br>
______________________________<wbr>__________<br>
Lähettäjä: midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.<wbr>evolveum.com</a>> käyttäjän  puolestaPertti Kellomäki <<a href="mailto:pertti.kellomaki@datactica.fi">pertti.kellomaki@datactica.fi</a><wbr>><br>
Lähetetty: 27. lokakuuta 2016 13:38<br>
Vastaanottaja: midPoint General Discussion<br>
Aihe: [midPoint] REST examples<br>
<div class="HOEnZb">
<div class="h5"><br>
Hi,<br>
<br>
I am trying to use the REST interface, and I am able to run the examples<br>
given in the midPoint wiki. However, I'm having a hard time formulating<br>
queries myself. Can someone share for example the xml needed to create a<br>
new user via the REST api? Pointers to more examples or documentation<br>
would also be much appreciated.<br>
<br>
Pertti<br>
<br>
<br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>