Hi there,
I am desperately trying to get the Nextcloud API to send me the tags for my files. I am runing on:
Nextcloud 21.0.0
And i tried:
PROPFIND-Request via Insomnia to:
https://cloud.my-server.com/remote.php/dav/files/my-user?format=json
I included this XML-body:
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<d:getlastmodified />
<d:getetag />
<d:getcontenttype />
<d:resourcetype />
<oc:fileid />
<oc:permissions />
<oc:size />
<d:getcontentlength />
<nc:has-preview />
<oc:favorite />
<oc:tags />
</d:prop>
</d:propfind>'
I gave “Readme.md” the tag 2test2 via the web GUI. And here is the response from the PROPFIND:
<d:response>
<d:href>/remote.php/dav/files/mein-benutzer/Readme.md</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Tue, 02 Mar 2021 14:42:49 GMT</d:getlastmodified>
<d:getcontentlength>1</d:getcontentlength>
<d:resourcetype/>
<d:getetag>"bf233db44bc38ebe9ae0df6ef693afc8"</d:getetag>
<d:getcontenttype>text/markdown</d:getcontenttype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<d:quota-used-bytes/>
<d:quota-available-bytes/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
Nothing there about tags… what am I doing wrong or is there sime trick?
Thanks in advance!