Librairies API Call - 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: Librairies API Call (/t-librairies-api-call) |
Librairies API Call - Thierry - 2024-05-31 Hello all, I want to seting up my jellyfin server with a program I develop. I use API Calls to do this. But I don't know How to add or remove a librairy for a specific user with the API. I didin't find anything about this in the API Doc. Could you please help me? RE: Librairies API Call - Thierry - 2024-06-05 Someone to help me with API ? RE: Librairies API Call - TheDreadPirate - 2024-06-05 Try joining us in Discord/Matrix. There are some developer focused channels that our devs frequent more than the forum. https://jellyfin.org/contact/ RE: Librairies API Call - pcm - 2024-06-05 It's documented here - https://api.jellyfin.org/#tag/User/operation/UpdateUserPolicy You'd need to make a POST request to /Users/a-user-id/Policy endpoint ...In the request payload you'd need to provide the the list of 'folder-id's (aka library-id) of you'd want for enabled for that user. Something like as your request payload would do Code: { You'd get a 204 Response with no content if all goes well. You can get a list of available folders/libraries and their names ids and other details using the GET /Library/VirtualFolders request. API doc here - https://api.jellyfin.org/#tag/LibraryStructure/operation/GetVirtualFolders
|