v1

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

Share a calendar

This function adds a share for the specified calendar.

get/CPDAVD/add_delegate

Query parameters

calendarstring required
Example:calendar

The calendar to share.

delegateestring required
Example:second@example.com

The person to whom you will share the calendar.

delegatorstring required
Example:first@example.com

The owner of the calendar, who wishes to share it to another user.

readonly0 | 1
Example:1

If set, the provided access will be read-only.

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": "add_delegate",
  "module": "CPDAVD",
  "result": {
    "data": {
      "shared": 1
    },
    "status": 1
  }
}