<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>