DAV
Calendar and Contacts (DAV)
Manage a calendar, task list, or address book
Changed onThis function creates, updates, or deletes a collection.
get/CPDAVD/manage_collection
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Query parameters
accountstring required
Example:user@example.com
The owner of the calendar.
action'create' | 'update' | 'delete' required
Example:delete
The action to perform (create, update, or delete a collection).
collection_type'calendar' | 'tasks' | 'addressbook' required
Example:calendar
The collection type.
calendar-colorstring
Example:#ee5555
The color of the calendar, if applicable.
descriptionstring
Example:This is my calendar.
The description of the collection.
namestring
Example:My Calendar
The name of the collection. Required when creating a collection.
pathstring
Example:/calendars/user@example.com/mycalendar
The path to the collection. Required for the update and delete actions, which use it to identify an existing collection. Optional for create, where omitting it autogenerates a path of the form <collection_type>-<uuid>.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "manage_collection",
"module": "CPDAVD",
"result": {
"data": {
"shared": 1
},
"status": 1
}
}Changes
- info
the
queryrequest parameterpathbecame optional
- info