• 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 Troubleshooting SOLVED: Jellyfin not accepting Item Update API call

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin not accepting Item Update API call

    ram
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Sep
    Reputation: 0
    #1
    2024-09-07, 02:39 AM
    I'm trying to update Names for Items with the Jellyfin API but keep getting 400 errors. Looking through the API docs, I can't find any fields marked as required, though even when I fill what I can, I'm finding myself with this problem.

    Here's my python script, stripped down to my fundamental problem:
    Code:
    import urllib.request
    import urllib.parse
    import json

    headers = {
    "Authorization": "MediaBrowser Token=xxxx",
    "Content-Type":"application/json",
    }

    update_url = "http://localhost:8096/Items/0004fcba40a043393e8c671a3b1898e9"

    data = {
        "Name":"sure",
    }

    update_request = urllib.request.Request(url=update_url, method="POST", headers=headers, data=json.dumps(data).encode("utf-8"))

    update_response = urllib.request.urlopen(update_request)
    print(update_response.read().decode('utf-8'))

    Any help is appreciated!
    Go to solution
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Jellyfin not accepting Item Update API call - by ram - 2024-09-07, 02:39 AM
    RE: Jellyfin not accepting Item Update API call - by ram - 2024-09-07, 08:22 AM
    RE: Jellyfin not accepting Item Update API call - by niels - 2024-09-07, 12:38 PM
    RE: Jellyfin not accepting Item Update API call - by itai shufman - 2024-10-19, 12:45 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