• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Librairies API Call

     
    • 0 Vote(s) - 0 Average

    Librairies API Call

    How to add or remove a librairy for a specific user
    pcm
    Offline

    Member

    Posts: 62
    Threads: 4
    Joined: 2024 May
    Reputation: 0
    Country:Uzbekistan
    #4
    2024-06-05, 08:47 PM (This post was last modified: 2024-06-05, 08:55 PM by pcm. Edited 7 times in total.)
    It's documented here - https://api.jellyfin.org/#tag/User/opera...UserPolicy

    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:
    {
        "AuthenticationProviderId": "blah",
        "PasswordResetProviderId": "blah",
        "EnabledFolders": [
            "my-folder-id1",
            "my-folder-id2"
        ]
    }

    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/LibraryStr...ualFolders
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Librairies API Call - by Thierry - 2024-05-31, 08:28 AM
    RE: Librairies API Call - by Thierry - 2024-06-05, 09:12 AM
    RE: Librairies API Call - by TheDreadPirate - 2024-06-05, 02:30 PM
    RE: Librairies API Call - by pcm - 2024-06-05, 08:47 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode