• 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
    Thierry
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Luxembourg
    #1
    2024-05-31, 08:28 AM
    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?
    Thierry
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:Luxembourg
    #2
    2024-06-05, 09:12 AM (This post was last modified: 2024-06-05, 11:49 AM by Thierry. Edited 1 time in total.)
    Someone to help me with API ?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-06-05, 02:30 PM
    Try joining us in Discord/Matrix. There are some developer focused channels that our devs frequent more than the forum.

    https://jellyfin.org/contact/
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    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)


    • 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