makeCollection
makeCollection
Section titled “makeCollection”const response = await makeCollection({ url: 'https://caldav.icloud.com/12345676/calendars/c623f6be-a2d4-4c60-932a-043e67025dde/', props: { displayname: 'my-calendar', [`${DAVNamespaceShort.CALDAV}:calendar-description`]: 'calendar description', }, headers: { authorization: 'Basic x0C9ueWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”urlrequired, url of the collection to createpropsElementCompact prop for the collectiondepthDAVDepthheadersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch function
Return Value
Section titled “Return Value”array of DAVResponse
Behavior
Section titled “Behavior”send MKCOL request and parse response xml into array of DAVResponse