8/15/2023 0 Comments Add a tag metadoctorI cannot find a comprehensive list of avaliable properties for the tag list. I have nowhere the feeling anyone cares for the documentation. The best I got is here: Basic APIs - Nextcloud 15 Developer Manual 15 documentation. I could not find a comprehensive documentation of the API. ![]() As you can imagine after that time I did not find a solution to the remaining issues to use it properly as a lightweight DMS. H 'Authorization: Basic YWRtaW46YWRtaW4=' \ How do I get the ID of a tag and: curl -X PROPFIND \ Otherwise is there a comprehensive documentation of the API? I could not find the call for daniel512’s post. Isnt there a way to add a tag by name to the file by name? If not, add tag, get id of tag (no idea how).Get the list of tags, check if the desired tag is already there, get the id of it.Get the Id of the file (I guess via PROPFIND request).When I try another tag id then I get an error response, so I believe the tag id exists.Įven if it worked I have the feeling the process is quite complicated: I get no response in this case but there appears no tag in the details of the file. Then I applied daniel512’s command to another file (file id=7) and tag (=1,). ![]() ![]() I tried it but it did not work as expected. Thank you for the hint with the curl-call. You can test it with postman and before add your the Authorization basic and change set your nextcloud server path and your username. To add a systemtag, you can run the following request:Ĭurl ‘your/nextcloud/server/path/remote.php/dav/systemtags/’ -H ‘Connection: keep-alive’ -H ‘requesttoken: Hwwe1jFy4 VUzkQvdZ2Rliu4bZZg8vFRkITIHrfjVjw=:bW5br2IZ29cW9whGMND 2FjcIf0jy95i2uifSe25JgQ=’ -H ‘X-Requested-With: XMLHttpRequest’ -H ‘User-Agent: Mozilla/5.0 (X11 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/.130 Safari/537.36’ -H ‘Content-Type: application/json’ -H ‘Accept: /’ -H ‘Origin: your/nextcloud/server/path’ -H ‘Accept-Encoding: gzip, deflate’ -H ‘Accept-Language: en-GB,en-US q=0.9,en q=0.8,de q=0.7’ -H ‘Cookie: nc_sameSiteCookielax=true nc_sameSiteCookiestrict=true nc_username=yourUsername oc_sessionPassphrase=szbMZo1paGbmRVr/r8rcL/z/uZ6QX09blpQpYLVXRGexUkGcU9lBmeqcxQmD4AAxyDJ+BwJleJGtwnr0m/1Sj4WuxOeGCnhx2FaFgfLguTQfFksQq5QrYKzdqoaV+BUr ockdwm1acqn7=e05121c702f545e2510e57323ebe06f6 nc_token=wL+td37Ak+NBSRCO7sdl0gwEzRyivVYV nc_session_id=e05121c702f545e2510e57323ebe06f6’ -data-binary ‘’ -compressed -insecure I think you just update property-tags of a resource. I think there are Systemtags what we see on the tab “tag” and there is the property oc:tags which can have a groupof tag-properties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |