I updated PMS to the latest Plex Pass Beta and noticed that I am now getting 404s when trying to send a request to PMS to scan a specific path using either PUT or POST requests, though GET still works. This broke on just this update, was working fine as is before. Is this an intentional change?
Sep 14, 2023 17:04:08.042 [139843122363192] INFO - Request: [172.20.0.9:37842 (Subnet)] PUT /library/sections/2/refresh?path=%2Fmnt%2Fmedia%2FMovies%2FTheater+Camp+%282023%29 (11 live) #1fb58 GZIP Signed-in Token (rg9400) (Stormlight)
So yes, GET requests still work. But PUT requests used to work, and I am not sure if this was intentionally broken in this version, but the same path no longer works with that type of request. Regardless, 404 is the wrong error to throw if the method is no longer supported.
There has been a large ongoing refactor to our request handling code, this specific endpoint was never meant to use PUT requests but due to how our legacy code handled things it would be allowed.
Nowhere in our documentation (https://support.plex.tv/articles/201638786-plex-media-server-url-commands/) do we mention using PUTs for these requests nor do any of our official clients use PUTs here so it may have just been the wrong information being passed on through forums that lead to people using it like this.
GET is the correct method to use for the /refresh endpoint.