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
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