Create calendar
Create a CalDAV compatible calendar
- HTTP Method:
POST
- URL:
https://example.domain.tld/api/v1/calendars/
- Require authentication:
Yes
- Permission level required:
MailUser
Request parameters
Parameter |
Type |
Description |
Required |
friendly_name |
str |
Name (identifier) for calendar |
Required |
Response parameters
Parameter |
Type |
Description |
friendly_name |
str |
Name (identifier) of calendar |
status |
str |
Status |
url |
str |
URL of CalDAV calendar |
Example request (Python)
import requests
import json
from pprint import pprint
url = "https://example.domain.tld/api/v1/calendars/"
data = {
"friendly_name" : "Personal"
}
r = requests.post(url, json=data, auth=("ab@vonmail.com","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
Example response (JSON)
{'friendly_name': 'Personal',
'status': 'generating',
'url': 'https://example.domain.tld/radicale/ab@vonmail.com/146f3568-1175-414f-b194-45342de3326e/'}