DDev
September 22, 2020, 12:27pm
1
Hi there,
as written on the documentation, I ‘can request additional properties by sending a request body with the PROPFIND request that lists all requested properties’; nonetheless, I don’t know how set the request string to do so.
I use CURL and the string I have to edit is:
curl -s -u username:password -X PROPFIND "https://next.azienda.eu/remote.php/dav/files/username/Photos"
and the additional properties I trying to get are fileid and has-preview
Any solution?
Thanks in advance!
gas85
September 22, 2020, 12:29pm
2
I think you have to add body with request XML or JSON. Have a look here:
In the same file you can find example with JSON:
echo "[ERROR] Could to find tagID for a tag $tagName. Please check spelling and if tag exist"
exit 1
fi
}
SetTag () {
curl -s -m 10 -u $user:$password ''$NextcloudURL'/remote.php/dav/systemtags-relations/files/'$fileid/$tagID \
-X PUT -H "Content-Type: application/json" \
--data '{"userVisible":true,\
"userAssignable":true,\
"canAssign":true,\
"id":"'$tag'",\
"name":"'$tagName'"}'
echo "[PROGRESS] Setting tag $tagName for $fileToTag."
}