<div dir="ltr">Hello everybody,<div><br><div><div><br></div><div>    My name is Maxi and I&#39;m analyzing caldav servers to implement in the company I&#39;m working for. The company has an app where events are created. Once it happen, emails are sent with ICS files. The idea is to also save the events in the caldav server. I&#39;ve this part working (dev mode) by calling the Darwin API (<a href="http://localhost:8008/calendars/users/">http://localhost:8008/calendars/users/</a>&lt;USER&gt;/calendar/&lt;ICS-File&gt;.ics and the ics file content in the request body). Then users will be able to sync their events against the caldav server. (This is also working. I was able to sync my events using Evolution and Thunderbird).</div><div><br></div><div>     What I need now, is some help with the API part for users creation. </div><div>     Logged as the admin (admin/admin) I&#39;m making PUT calls to:</div><div><br></div><div><a href="http://localhost:8008/calendars/users/">http://localhost:8008/calendars/users/</a><br></div><div><br></div><div>     The request header has Authorization - Basic for admin/admin and the body I&#39;m sending is:</div><div><br></div><div><div>&lt;record type=&quot;user&quot;&gt;</div><div>    &lt;short-name&gt;maxi.sbrocca&lt;/short-name&gt;</div><div>    &lt;uid&gt;maxi.sbrocca&lt;/uid&gt;</div><div>    &lt;password&gt;password&lt;/password&gt;</div><div>    &lt;full-name&gt;Maxi Sbrocca&lt;/full-name&gt;</div><div>    &lt;email&gt;<a href="mailto:maximiliano.sbrocca@santexgroup.com">maximiliano.sbrocca@santexgroup.com</a>&lt;/email&gt;</div><div>  &lt;/record&gt;</div></div><div><br></div><div><br></div><div>     And the response error I&#39;m getting is:</div><div><br></div><div><div>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</div><div>&lt;error xmlns=&#39;DAV:&#39;&gt;</div><div>    &lt;need-privileges&gt;</div><div>        &lt;resource&gt;</div><div>            &lt;href&gt;/calendars/users/&lt;/href&gt;</div><div>            &lt;privilege&gt;</div><div>                &lt;write-content/&gt;</div><div>            &lt;/privilege&gt;</div><div>        &lt;/resource&gt;</div><div>    &lt;/need-privileges&gt;</div><div>&lt;/error&gt;</div></div><div><br></div><div>    I&#39;m not seeing any console log error:</div><div><br></div><div>2016-03-31T10:40:24-0300 [caldav-0]  [txweb2.server#info] PUT /calendars/users/ HTTP/1.1<br></div><div><br></div><div>     Could you please help me to find out what I&#39;m doing wrong?</div><div>   </div><div>Thanks in advance,</div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;margin:0px;background-color:rgb(255,255,255)"><b style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-size:15px;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">Sbrocca Hector Maximiliano</span></b><br></p><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap">Software Engineer</span></font></div><div dir="ltr" style="font-size:12.8px"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap"><br></span></font><div><br></div><div><img src="http://santexgroup.com/images/Santex_logo.png"><br></div><span style="font-size:15px;font-family:Calibri;vertical-align:baseline">Vélez Sársfield 576  4° piso.</span><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">  </span><span style="font-size:15px;font-family:Calibri;color:rgb(255,0,0);font-weight:bold;vertical-align:baseline"></span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">Córdoba, Argentina.              </span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">+54 (0351) 589 7070     </span><br><div><span style="vertical-align:baseline;font-size:15px;font-family:Calibri"><font color="#3333ff"><a href="http://www.santexgroup.com/" style="color:rgb(17,85,204)" target="_blank">www.santexgroup.com</a></font></span></div><div><br></div><div>Follow us</div><div><br></div><div><a href="https://www.facebook.com/SantexGroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/F.png"></a> <a href="https://twitter.com/santexgroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/T.png" style="font-size: 12.8px;"></a><span style="font-size:12.8px"> </span><a href="https://plus.google.com/+Santexgroup/posts" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/G.png" style="font-size: 12.8px;"></a><span style="font-size:12.8px"> </span><a href="https://www.linkedin.com/company/129740?trk=tyah&amp;trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A129740%2Cidx%3A1-1-1%2CtarId%3A1442929736721%2Ctas%3Asantex" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/L.png" style="font-size: 12.8px;"></a><span style="font-size:12.8px"> </span><a href="https://www.youtube.com/user/TheSantexChannel" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/Y.png" style="font-size: 12.8px;"></a><span style="font-size:12.8px"> </span><a href="http://santexgroup.com/blog/" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/B.png" style="font-size: 12.8px;"></a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div>