[X] I have searched the existing open and closed issues
Current Behavior
I have a simple bash script using curl to trigger an episode scan. It was working perfectly in V3, after upgrading to V4 it fails with a "415 method not allowed." I can find no changes in the API docs that would account for this. I did find one closed issue that suggested adding the header Content Type (see below) but that solution did not work for me.
Is there an existing issue for this?
Current Behavior
I have a simple bash script using curl to trigger an episode scan. It was working perfectly in V3, after upgrading to V4 it fails with a "415 method not allowed." I can find no changes in the API docs that would account for this. I did find one closed issue that suggested adding the header Content Type (see below) but that solution did not work for me.
Expected Behavior
Episode to be successfully imported.
Steps To Reproduce
curl -vvvvv http://10.0.1.201:61000/api/command -X POST --header "X-Api-Key:apikeyremovedforpost" -d '{"name":"DownloadedEpisodesScan","path":"/tv/Unsorted-TV Shows/downloadedshowdirectory/","importMode":"Move"}' --header "Content-Type: application/json; charset=utf-8"
Environment
What branch are you running?
Main
Trace Logs?
2024-01-05 14:30:18.8|Trace|Http|Req: 289 [POST] /api/command (from 10.0.1.203 curl/7.88.1) 2024-01-05 14:30:18.8|Trace|Http|Res: 289 [POST] /api/command: 405.MethodNotAllowed (1 ms) 2024-01-05 14:30:18.8|Debug|Api|[POST] /api/command: 405.MethodNotAllowed (1 ms)
Anything else?
No response