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:
Any help is appreciated!
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!