Plex API: How to refresh multiple items at the same time?

In a very old PMS changelog it says:
FIX: (API) Allow PUT /library/metadata/X to take multiple IDs.

I’ve tried numerous ways to achieve that: /library/metadata/X,Y/refresh, /library/metadata/X/Y/refresh, /library/metadata/X;Y/refresh, /library/metadata/X&Y/refresh, /library/metadata/X+Y/refresh, to no avail.

Does anyone know how the API expects the IDs?

Anyone? Perhaps someone official?

(Moved the thread): Perhaps one of you channel developers?

Hard to believe that no one in Plex can answer these kind of questions… even harder if you consider this should be already documented in a proper official and updated documentation…

I went to the Plex Web interface with chrome dev console, and selected multiple seasons and hit the refresh button.

It made multiple requests with a single ID for each.

Maybe it doesn’t work if a plex app doesn’t make use of it?

edit: http://127.0.0.1:32400/library/metadata/398636,401872?X-Plex-Token=XXXXXXXXXXXXXXXX does return the metadata of two objects. but /refresh on multiple objects doesn’t work. So I guess you need a separate request for each of those refreshes.

Yeah, I was aware of that. But the changelog I’ve linked states that the PUT API of /metadata now accepts multiple IDs.

I can’t see where or how it does. You’re referring to its GET API endpoint.

@dane22 if I describe this issue more detailed, would you be willing to raise it, also?

@panni said:
I can’t see where or how it does.

PUT /library/metadata/X does accept multiple comma separated values like the changelog says. You can test this by looking at the PMS log.
PUT /library/metadata/X/refresh does not accept csv.

You’re right.

I hoped for multiple IDs on the refresh endpoint. Thanks.