diff --git a/doc/REST-CalDAV-CardDAV/Calendar.md b/doc/REST-CalDAV-CardDAV/Calendar.md index 53e64f3e23..61c2112b26 100644 --- a/doc/REST-CalDAV-CardDAV/Calendar.md +++ b/doc/REST-CalDAV-CardDAV/Calendar.md @@ -299,32 +299,8 @@ X-WebDAV-Status: 201 Created ``` - * **PUT** requests with a ```Content-Type: application/json``` header allow modifying single resources (requires to specify all attributes!) -
- Example: PUT request to update a resource - -``` -cat </addressbook/1234' -X PUT -d @- -H "Content-Type: application/json" --user -{ - "uid": "5638-8623c4830472a8ede9f9f8b30d435ea4", - "prodId": "EGroupware Addressbook 21.1.001", - "created": "2010-10-21T09:55:42Z", - "updated": "2014-06-02T14:45:24Z", - "name": [ - { "type": "@type": "NameComponent", "personal", "value": "Default" }, - { "type": "@type": "NameComponent", "surname", "value": "Tester" } - ], - "fullName": { "value": "Default Tester" }, -.... -} -EOF - -HTTP/1.1 204 No Content -``` -
-
Example: PUT request with UID to update an existing resource or create it, if not exists @@ -371,6 +347,7 @@ HTTP/1.1 204 No content * **DELETE** requests delete single resources
Example: Delete an existing event + > Please note: the "Accept: application/json" header is required, as the CalDAV server would return 404 NotFound as the url does NOT end with .ics ```