Hi Quentin,

the url is just an example, not the real url we use.

Cheers,
Bit

> Am 07.10.2025 um 09:11 schrieb qhivert ([email protected]) <[email protected]>:
> 
> Hello,
>  
> Are you sure about your url? I see that error is the message for 404 http 
> code status
>  
> Cheers,
> -- 
> Quentin Hivert || Alinto || R&D Lead Developer 
> 19 Quai Perrache 69002 Lyon
> www.alinto.com <http://www.alinto.com/>
>  
> From: [email protected] <[email protected]> On Behalf Of beon-IT 
> contact
> Sent: lundi 6 octobre 2025 20:46
> To: [email protected]
> Subject: [SOGo] Set new calendar events using cURL results in not found error
>  
> Hi there,
>  
> I would like to set a new event in my personal calendar via cURL but get 
> always a not found error:
> <D:error xmlns:D="DAV:">the requested object could not be found!</D:error>
>  
> My cURL call i have use is like this:
>  
> curl --location --request PUT 
> 'https://webmail.domain.de/SOGo/dav/[email protected]/Calendar/personal/' \
> --header 'Content-Type: text/xml' \
> --header 'depth: 1' \
> --header 'charset: "utf-8"' \
> --header 'Authorization: Basic base64_hash' \
> --data '<C:calendar-query xmlns:D='DAV:' 
> xmlns:C='urn:ietf:params:xml:ns:caldav'>
>     <D:set>
>         <D:prop>
>             <D:displayname>Test Calendar</D:displayname>
>             <C:calendar-description>Test Calendar</C:calendar-description>
>             <C:calendar-data>
>               <![CDATA[
>                   BEGIN:VCALENDAR
>                   BEGIN:VEVENT
>                   UID:test123
>                   SUMMARY:Test Event
>                   DTSTART=20251007T080000
>                   DTEND=20251007T100000
>                   END:VEVENT
>                   END:VCALENDAR]]>
>             </C:calendar-data>
>         </D:prop>
>     </D:set>
> </C:mkcalendar>’
>  
> When i try the test code from the SOGo developers guide:
> curl -u username:password -H 'Content-Type: application/json' -d '{}' 
> http://localhost/SOGo/so/francis/Calendar/personal/71B6-54904400-1-7C308500.ics/save
> I get also the same error: 
> <D:error xmlns:D="DAV:">the requested object could not be found!</D:error>
>  
>  
> So when I request events from the personal calendar then it works! But I 
> would also set new events by using cURL.
> What could be the reason? 
> Thanks & regards,
> Bit

Reply via email to