v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DAV
Calendar and Contacts (DAV)

Manage a calendar, task list, or address book

This function creates, updates, or deletes a collection.

get/CPDAVD/manage_collection

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.

pathstring required
Example:/calendars/user@example.com/mycalendar

The path to the collection.

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.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "manage_collection",
  "module": "CPDAVD",
  "result": {
    "data": {
      "shared": 1
    },
    "status": 1
  }
}