I would like to add a comment to the nextcloud activity app by myself via webdav / api call.
Some docs pointed out I can only add a comment to a file.
However, there is a link for contacts and for comments. It should be actually possible to add a comment into it.
Unfortunatley the documentation is a disaster.
I found some hints which lead me to the following solutions:
curl -u "{user@user.com}:{apices}" -X PROPPATCH https://{url}.com/remote.php/dav/addressbooks/users/{username}/contacts/{user-id}.vcf \
-d '<?xml version="1.0"?>
<d:propertyupdate xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/">
<d:set>
<d:prop>
<cs:note>This is a custom comment</cs:note>
</d:prop>
</d:set>
</d:propertyupdate>'
It also returns a 200ok but nothing appears in activity-app.
Another approach would be like this:
curl -u "{user@user.com}:{api-key}" -X POST "https://{url}.com/remote.php/dav/comments/contacts/{user-id}" -H "Content-Type: application/json" -d '{"actorType": "users", "actorId": "username", "message": "My funny comment!"}'
But this just returns entity types contacts not found.
Iām really lost here.
Somebody an idea?