Is there any possibility to add addressbook via curl?
I know how to add a contact to an existing addressbook:
STATUS=$(curl -k -X PUT -u ${AUSER}:${APASS} -H “Content-Type: text/vcard; charset=utf-8”
–data-binary @${uid}.vcf
${SERVER}${CALPATH}/${AUSER}/${CALNAME}/${uid}.vcf -o curl-${uid}.log -sw ‘%{http_code}’)
But how to add this addressbook if it doesn’t exist yet?
I know occ: php occ dav:create-addressbook ${AUSER} ${CALNAME}
How to do this using curl?
best regards
JB