(Yesterday, 05:37 AM)crobibero Wrote: This is currently the best resource for using a Jellyfin ApiKey or token.
https://gist.github.com/nielsvanvelzen/e...1ffaf12a6f
Thanks, but I saw really zero information about how to do this.
What is need: curl command and options, the required string and other arguments to use this.
I then googled more and found that some Emby information may still be valid for Jellyfin!
The following (which I could not find anywhere in the Jellyfin docs) rescans all libraries:
curl --data '' http://127.0.0.1:8096/Emby/Library/Refre...=<API_KEY>
I think other syntax, using -X POST and similar stuff may also work, but I did not research further.
I also found information about how to rescan just one library:
curl -X POST "http://127.0.0.1:8096/Emby/Library/Media/Updated?api_key=<API_KEY>" -H "accept: */*" -H "Content-Type: application/json" -d "{\"Updates\":[{\"Path\":\"${DIR}\",\"UpdateType\":\"\"}]}"
UpdateType is optional, but I could not find out, which syntax to use when letting it out.
But anyways, the above did not work for me.
Anybody has more information on how to do this?

