Correct way to use Jellyfin API to restart the server - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Correct way to use Jellyfin API to restart the server (/t-correct-way-to-use-jellyfin-api-to-restart-the-server) |
Correct way to use Jellyfin API to restart the server - R4RaiN - 2024-02-29 What's the correct way to make an api request to restart the server ? what I did : curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/system/restart tried curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/api/system/restart responses: HTTP/1.1 302 Found Content-Length: 0 Date: Thu, 29 Feb 2024 09:38:52 GMT Server: Kestrel Location: /jellyfin/web/index.html when I used curl -i -X POST -H "Authorization: CustomAuthentication 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/jellyfin/api/system/restart Response: HTTP/1.1 404 Not Found Content-Length: 0 Date: Thu, 29 Feb 2024 09:42:46 GMT Server: Kestrel X-Response-Time-ms: 0 curl -i -X POST -H "Authorization: 404ba4ecac5e46e4aa38fb2bac9656c1" http://ip:8096/api/system/restart HTTP/1.1 302 Found Content-Length: 0 Date: Thu, 29 Feb 2024 09:42:29 GMT Server: Kestrel Location: /jellyfin/web/index.html RE: Correct way to use Jellyfin API to restart the server - niels - 2024-02-29 You're sending a wrong authorization header. See the documentation at https://gist.github.com/nielsvanvelzen/ea047d9028f676185832e51ffaf12a6f on how it works. Also, keep in mind that the restart functionality in 10.8 does not work on most platforms. This will improve in 10.9 where all platforms support it. RE: Correct way to use Jellyfin API to restart the server - R4RaiN - 2024-02-29 Thanks , Received a 204 response but doesn't restarted as you stated. Hope It'll get fixed soon |