Help with API 405.MethodNotAllowed

What I’m I doing wrong here. Trying to toggle monitor status for a specific episode

I’m on Windows 10, and this comes from a batch
This is what’s in the json package (JSON.txt) {“seriesId”:35,“episodeFileId”:73653,“monitored”:false} so I don’t have to escape like a crazy person :joy:

%curl% -skX PUT https://127.0.0.1:9898/api/episode/@JSON.txt -H "%sonarr_api%" --compressed --data-binary ""
or
%curl% -skX PUT https://127.0.0.1:9898/api/episode/@JSON.txt -H "content-type: application/json" "%sonarr_api%" --compressed --data-binary ""

And I get this error

[Trace] Http: Req: 13483 [PUT] /api/episode/@TestJSON.txt
[Trace] Http: Res: 13483 [PUT] /api/episode/@TestJSON.txt: 405.MethodNotAllowed (1 ms)
[Debug] Api: [PUT] /api/episode/@TestJSON.txt: 405.MethodNotAllowed (1 ms)

please don’t point me to https://github.com/Sonarr/Sonarr/wiki/API the info on there is quite thin :anguished: and I’ve went over it many times.

Never mind for now, figure out that I had to move json data to the end of the string

–data-binary “@JSON.txt

delete post if you like.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.