Jellyfin Forum
API code for refreshing playlists - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: API code for refreshing playlists (/t-api-code-for-refreshing-playlists)



API code for refreshing playlists - ryandikdan - 2023-12-23

Hello, I could use some help with some automated scripting I'm doing. I don't really know how to use APIs, but I have written lots of other scripts. I think there's a way to refresh a playlist that I made on jellyfin (an .m3u file), but I'm a bit stuck. I know that I need to run a post: http://localhost/Items/{itemId}/Refresh but I don't know how to find the itemId for the playlist I want to target. Then it's just a curl command? Where does the API key go? Worringly, when I see API calls for playlists they reference playlistIds instead of itemIds. Any help would be appreciated!