CalDAV and CardDAV
Find the calendars and address books of a user on a CalDAV or CardDAV server, read the events of a period and the contacts, and create, replace or delete them safely with etags. Typical uses: put a planning from a database into a shared calendar, synchronize contacts with a CRM.
dav calendarsdav calendarsdav eventsdav eventsdav put_eventdav put_eventdav delete_eventdav delete_eventdav addressbooksdav addressbooksdav contactsdav contactsdav put_contactdav put_contactdav delete_contactdav delete_contact

dav calendars <url>


Description

    Find the calendars of a user without credentials. Result: JSON array of {url, path, name, description, components, color, ctag, sync_token}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav calendars "http://127.0.0.1:37201/"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/", "path": "/alice/work/", "name": "Work", "description": "Team calendar", "components": ["VTODO", "VEVENT", "VJOURNAL"], "color": null, "ctag": "\"116a7c627c2a13194236b55c5b1e70aeb08902d6cf7946459cbd97c1859ec685\"", "sync_token": "http://radicale.org/ns/sync/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]

dav calendars <url> <json_params>


Description

    Find the calendars with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), max_bytes

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav calendars "http://127.0.0.1:37201/" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/", "path": "/alice/work/", "name": "Work", "description": "Team calendar", "components": ["VTODO", "VEVENT", "VJOURNAL"], "color": null, "ctag": "\"116a7c627c2a13194236b55c5b1e70aeb08902d6cf7946459cbd97c1859ec685\"", "sync_token": "http://radicale.org/ns/sync/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]
Fixed result from a real Radicale 3.9 server on 127.0.0.1: from /.well-known/caldav, which redirects
admin
dav calendars "http://127.0.0.1:37201/.well-known/caldav" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/", "path": "/alice/work/", "name": "Work", "description": "Team calendar", "components": ["VTODO", "VEVENT", "VJOURNAL"], "color": null, "ctag": "\"116a7c627c2a13194236b55c5b1e70aeb08902d6cf7946459cbd97c1859ec685\"", "sync_token": "http://radicale.org/ns/sync/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]
Fixed result from a real Radicale 3.9 server on 127.0.0.1: a wrong password
admin
dav calendars "http://127.0.0.1:37201/" "{\"username\": \"alice\", \"password\": \"dav_wrong_password\"}"
mentdb
Sorry, an error appears (dav calendars failed on 127.0.0.1:37201: HTTP 401 (authentication refused: check the credentials)).

dav events <url>


Description

    Read all the events of a calendar without credentials. Result: JSON array of {url, path, etag, events}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav events "http://127.0.0.1:37201/alice/work/"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "etag": "\"2d9ed9d55a7c55c42c850132111e248c30f21d430c9070d0725ca5801537eaec\"", "events": [{"uid": "meeting-42@example.org", "start": "2026-11-20T09:00:00Z", "all_day": false, "end": "2026-11-20T10:00:00Z", "dtstamp": "2026-11-11T13:30:00Z", "location": "Room 3", "summary": "Budget review"}]}]

dav events <url> <json_params>


Description

    Read the events with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), start and end (the period), component (VEVENT; VTODO or VJOURNAL), include_raw (false: true adds the iCalendar text, to change and put back), max_items, max_bytes

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav events "http://127.0.0.1:37201/alice/work/" "{\"username\": \"alice\", \"password\": \"dav_password\", \"start\": \"2026-11-19\", \"end\": \"2026-11-21\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "etag": "\"2d9ed9d55a7c55c42c850132111e248c30f21d430c9070d0725ca5801537eaec\"", "events": [{"uid": "meeting-42@example.org", "start": "2026-11-20T09:00:00Z", "all_day": false, "end": "2026-11-20T10:00:00Z", "dtstamp": "2026-11-11T13:30:00Z", "location": "Room 3", "summary": "Budget review"}]}]
Fixed result from a real Radicale 3.9 server on 127.0.0.1: a weekly event with an occurrence in the period
admin
dav events "http://127.0.0.1:37201/alice/work/" "{\"username\": \"alice\", \"password\": \"dav_password\", \"start\": \"2026-12-01T00:00:00Z\", \"end\": \"2026-12-08T00:00:00Z\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/standup-1-example.org.ics", "path": "/alice/work/standup-1-example.org.ics", "etag": "\"4048a0692cb8ae296fbf3fda12d402c152a9bbaf8fdb4604bc9cf1122cf257b7\"", "events": [{"uid": "standup-1@example.org", "start": "2026-11-02T08:00:00Z", "all_day": false, "end": "2026-11-02T08:30:00Z", "dtstamp": "2026-11-01T00:00:00Z", "rrule": "FREQ=WEEKLY;COUNT=10", "summary": "Stand-up"}]}]
Fixed result from a real Radicale 3.9 server on 127.0.0.1: with the iCalendar text
admin
dav events "http://127.0.0.1:37201/alice/work/" "{\"username\": \"alice\", \"password\": \"dav_password\", \"start\": \"2026-11-20\", \"end\": \"2026-11-21\", \"include_raw\": true}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "etag": "\"2d9ed9d55a7c55c42c850132111e248c30f21d430c9070d0725ca5801537eaec\"", "events": [{"uid": "meeting-42@example.org", "start": "2026-11-20T09:00:00Z", "all_day": false, "end": "2026-11-20T10:00:00Z", "dtstamp": "2026-11-11T13:30:00Z", "location": "Room 3", "summary": "Budget review"}], "ics": "BEGIN:VCALENDAR\ VERSION:2.0\ CALSCALE:GREGORIAN\ PRODID:-//MentDB//MQL//EN\ BEGIN:VEVENT\ UID:meeting-42@example.org\ DTSTART:20261120T090000Z\ DTEND:20261120T100000Z\ DTSTAMP:20261111T133000Z\ LOCATION:Room 3\ SUMMARY:Budget review\ END:VEVENT\ END:VCALENDAR"}]

dav put_event <url> <ics_or_json>


Description

    Create an event without credentials. Result: {url, path, uid, status, created, etag}

Parameters

    url:   The http or https URL, without credentials - String - required
    ics_or_json:   The event: a JSON object as for ics create, or an iCalendar text - String - required
admin
dav put_event "http://127.0.0.1:37201/alice/work/" "{\"uid\": \"meeting-42@example.org\", \"summary\": \"Budget review\", \"start\": \"2026-11-20T09:00:00Z\", \"end\": \"2026-11-20T10:00:00Z\", \"location\": \"Room 3\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "uid": "meeting-42@example.org", "status": 201, "created": true, "etag": "\"2d9ed9d55a7c55c42c850132111e248c30f21d430c9070d0725ca5801537eaec\""}

dav put_event <url> <ics_or_json> <json_params>


Description

    Create or replace an event with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), etag (replace this version only), overwrite (false)

Parameters

    url:   The http or https URL, without credentials - String - required
    ics_or_json:   The event: a JSON object as for ics create, or an iCalendar text - String - required
    json_params:   The parameters - String - required
admin
dav put_event "http://127.0.0.1:37201/alice/work/" "{\"uid\": \"meeting-42@example.org\", \"summary\": \"Budget review\", \"start\": \"2026-11-20T09:00:00Z\", \"end\": \"2026-11-20T10:00:00Z\", \"location\": \"Room 3\"}" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "uid": "meeting-42@example.org", "status": 201, "created": true, "etag": "\"2d9ed9d55a7c55c42c850132111e248c30f21d430c9070d0725ca5801537eaec\""}
Fixed result from a real Radicale 3.9 server on 127.0.0.1: an iCalendar text with a weekly rule
admin
dav put_event "http://127.0.0.1:37201/alice/work/" "BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Example//EN BEGIN:VEVENT UID:standup-1@example.org DTSTAMP:20261101T000000Z DTSTART:20261102T080000Z DTEND:20261102T083000Z RRULE:FREQ=WEEKLY;COUNT=10 SUMMARY:Stand-up END:VEVENT END:VCALENDAR" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/standup-1-example.org.ics", "path": "/alice/work/standup-1-example.org.ics", "uid": "standup-1@example.org", "status": 201, "created": true, "etag": "\"4048a0692cb8ae296fbf3fda12d402c152a9bbaf8fdb4604bc9cf1122cf257b7\""}
Fixed result from a real Radicale 3.9 server on 127.0.0.1: replace with overwrite
admin
dav put_event "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics" "{\"uid\": \"meeting-42@example.org\", \"summary\": \"Budget review (moved)\", \"start\": \"2026-11-20T14:00:00Z\", \"end\": \"2026-11-20T15:00:00Z\", \"location\": \"Room 3\"}" "{\"username\": \"alice\", \"password\": \"dav_password\", \"overwrite\": true}"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "path": "/alice/work/meeting-42-example.org.ics", "uid": "meeting-42@example.org", "status": 204, "created": false, "etag": "\"d9dc1454271aa8e590b21aa03eaf1c59d34eebd68c08b6cce34dac7de41a4590\""}
Fixed result from a real Radicale 3.9 server on 127.0.0.1: an etag that is not the current one
admin
dav put_event "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics" "{\"uid\": \"meeting-42@example.org\", \"summary\": \"Budget review\", \"start\": \"2026-11-20T09:00:00Z\", \"end\": \"2026-11-20T10:00:00Z\", \"location\": \"Room 3\"}" "{\"username\": \"alice\", \"password\": \"dav_password\", \"etag\": \"\\"an-old-etag\\"\"}"
mentdb
Sorry, an error appears (dav put_event failed on 127.0.0.1:37201: HTTP 412 (the etag does not match: the event was changed or deleted on the server since it was read; read it again)).

dav delete_event <url>


Description

    Delete an event without credentials. Result: {url, status}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav delete_event "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "status": 200}

dav delete_event <url> <json_params>


Description

    Delete an event with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), etag (delete this version only)

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav delete_event "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics" "{\"username\": \"alice\", \"password\": \"dav_password\", \"etag\": \"\\"an-old-etag\\"\"}"
mentdb
Sorry, an error appears (dav delete_event failed on 127.0.0.1:37201: HTTP 412 (the etag does not match: the event was changed on the server since it was read)).
Fixed result from a real Radicale 3.9 server on 127.0.0.1: delete
admin
dav delete_event "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/work/meeting-42-example.org.ics", "status": 200}

dav addressbooks <url>


Description

    Find the address books of a user without credentials. Result: JSON array of {url, path, name, description, ctag, sync_token}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav addressbooks "http://127.0.0.1:37201/"
mentdb
[{"url": "http://127.0.0.1:37201/alice/contacts/", "path": "/alice/contacts/", "name": "Contacts", "description": null, "ctag": "\"50542834ca4041663e2b45c9f185881292aa2315a039fde2dfe856f0c275d56a\"", "sync_token": "http://radicale.org/ns/sync/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]

dav addressbooks <url> <json_params>


Description

    Find the address books with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), max_bytes

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav addressbooks "http://127.0.0.1:37201/" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/contacts/", "path": "/alice/contacts/", "name": "Contacts", "description": null, "ctag": "\"50542834ca4041663e2b45c9f185881292aa2315a039fde2dfe856f0c275d56a\"", "sync_token": "http://radicale.org/ns/sync/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]

dav contacts <url>


Description

    Read all the contacts of an address book without credentials. Result: JSON array of {url, path, etag, contact}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav contacts "http://127.0.0.1:37201/alice/contacts/"
mentdb
[{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "path": "/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "etag": "\"128b757e3fb91574a8a7ea3c0f29c8e4279dfbe3d3645b8d60a4000373a25800\"", "contact": {"version": "4.0", "uid": "urn:uuid:7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5", "email": [{"value": "jean@example.com", "types": []}], "fn": "Jean Dupont", "org": "Innov AI", "tel": [{"value": "+262 692 00 00 00", "types": []}]}}, {"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "path": "/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "etag": "\"90449b07c83b89005c0e46339af075bfe2b7e40d9d2f7f826f016d4b08e837f1\"", "contact": {"version": "4.0", "uid": "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1", "email": [{"value": "marie@example.org", "types": []}], "fn": "Marie Curie"}}]

dav contacts <url> <json_params>


Description

    Read the contacts with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), search (the contacts whose name, email, phone or organization contains this text, without case), include_raw (adds the vCard text), max_items, max_bytes

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav contacts "http://127.0.0.1:37201/alice/contacts/" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "path": "/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "etag": "\"128b757e3fb91574a8a7ea3c0f29c8e4279dfbe3d3645b8d60a4000373a25800\"", "contact": {"version": "4.0", "uid": "urn:uuid:7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5", "email": [{"value": "jean@example.com", "types": []}], "fn": "Jean Dupont", "org": "Innov AI", "tel": [{"value": "+262 692 00 00 00", "types": []}]}}, {"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "path": "/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "etag": "\"90449b07c83b89005c0e46339af075bfe2b7e40d9d2f7f826f016d4b08e837f1\"", "contact": {"version": "4.0", "uid": "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1", "email": [{"value": "marie@example.org", "types": []}], "fn": "Marie Curie"}}]
Fixed result from a real Radicale 3.9 server on 127.0.0.1: a search
admin
dav contacts "http://127.0.0.1:37201/alice/contacts/" "{\"username\": \"alice\", \"password\": \"dav_password\", \"search\": \"curie\"}"
mentdb
[{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "path": "/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "etag": "\"90449b07c83b89005c0e46339af075bfe2b7e40d9d2f7f826f016d4b08e837f1\"", "contact": {"version": "4.0", "uid": "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1", "email": [{"value": "marie@example.org", "types": []}], "fn": "Marie Curie"}}]

dav put_contact <url> <vcard_or_json>


Description

    Create a contact without credentials. Result: {url, path, uid, status, created, etag}

Parameters

    url:   The http or https URL, without credentials - String - required
    vcard_or_json:   The contact: a JSON object as for vcard create, or a vCard text - String - required
admin
dav put_contact "http://127.0.0.1:37201/alice/contacts/" "{\"fn\": \"Jean Dupont\", \"email\": \"jean@example.com\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "path": "/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "uid": "urn:uuid:7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5", "status": 201, "created": true, "etag": "\"128b757e3fb91574a8a7ea3c0f29c8e4279dfbe3d3645b8d60a4000373a25800\""}

dav put_contact <url> <vcard_or_json> <json_params>


Description

    Create or replace a contact with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), etag, overwrite (false)

Parameters

    url:   The http or https URL, without credentials - String - required
    vcard_or_json:   The contact: a JSON object as for vcard create, or a vCard text - String - required
    json_params:   The parameters - String - required
admin
dav put_contact "http://127.0.0.1:37201/alice/contacts/" "{\"uid\": \"urn:uuid:7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5\", \"fn\": \"Jean Dupont\", \"email\": \"jean@example.com\", \"tel\": \"+262 692 00 00 00\", \"org\": \"Innov AI\"}" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "path": "/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "uid": "urn:uuid:7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5", "status": 201, "created": true, "etag": "\"128b757e3fb91574a8a7ea3c0f29c8e4279dfbe3d3645b8d60a4000373a25800\""}
Fixed result from a real Radicale 3.9 server on 127.0.0.1: a vCard text
admin
dav put_contact "http://127.0.0.1:37201/alice/contacts/" "BEGIN:VCARD VERSION:4.0 UID:urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1 FN:Marie Curie EMAIL:marie@example.org END:VCARD" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "path": "/alice/contacts/urn-uuid-4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf", "uid": "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1", "status": 201, "created": true, "etag": "\"90449b07c83b89005c0e46339af075bfe2b7e40d9d2f7f826f016d4b08e837f1\""}

dav delete_contact <url>


Description

    Delete a contact without credentials. Result: {url, status}

Parameters

    url:   The http or https URL, without credentials - String - required
admin
dav delete_contact "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf"
mentdb
{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "status": 200}

dav delete_contact <url> <json_params>


Description

    Delete a contact with parameters: username with password (basic authentication: the password is only read from that secret, whose name starts with DAV_ or MENTDB_; _HOSTS binds it to its hosts), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), etag

Parameters

    url:   The http or https URL, without credentials - String - required
    json_params:   The parameters - String - required
admin
dav delete_contact "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:37201/alice/contacts/urn-uuid-7d1c2e3f-0a4b-4c5d-8e9f-a0b1c2d3e4f5.vcf", "status": 200}