Jellyfin Forum
API Help - 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 Help (/t-api-help)



API Help - chicckd - 2025-05-30

I've tried to figure out the API for Jellyfin but failed!

I'm looking at doing something really simple, enable or disable a library via an API so I can script it. Or if there is another way of doing this in a script I'd try.

I was trying to create something using this

https://api.jellyfin.org/#tag/LibraryStructure/operation/UpdateLibraryOptions

But getting really stuck as to how it works or the data I need to feed to the API?

Does anyone have any pointers?

TIA.


RE: API Help - chicckd - 2025-10-13

Hello.

Would anyone be able to help with this?

I think it should be simple for some one other than me but I'm struggling with the API commands.

I would like a script that would enable our disable a library of that's possible?

I'm just stuck!


RE: API Help - niels - 2025-10-13

You first need to send a GET request to get the current library options, then change the ones you need to change (so Enabled in this case) and then finally POST it back to the linked API operation.


RE: API Help - chicckd - 2025-10-14

Thanks so much for replying.

I think from what you've said it might be a bit beyond my extremely limited skills then. I was thinking I might be able to cobble a bash script that did the post to the API and have one to enable the library and one to disable the library.

Having not done anything like this before, I want sure what was involved.