• 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 API endpoint to modify metadata

     
    • 0 Vote(s) - 0 Average

    API endpoint to modify metadata

    I'd like to set "valoración personal"
    chipiguay
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:Spain
    #1
    2025-11-01, 11:18 PM
    Hi,

    1st post here, so allow me to introduce myself: I'm Pablo, writing from Spain. I've self hosted jellyfin for around 5 years now. Very happy with it! Thank you everyone involved!

    I have some children and I'd like to apply a custom parental rating in parallel to "parental rating". I don't know the original name of this other field (valoracion personal in the Spanish UI), but so far I've used it to set the rating of some content for children. The thing is I recently learned of common sense media, which maintain a DB which makes a lot of sense if you ask me, and I'd like pretty much apply their rating through this custom parental rating field.

    To do so, I was planning to do some code that would do that for me. However, there are just too many endpoints in the swagger and I couldn't figure it out so far. And that's why I'm posting this. Can anyone maybe give me some tips for my journey?

    Much appreciated,
    Pablo.
    chipiguay
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:Spain
    #2
    Yesterday, 07:06 PM (This post was last modified: Yesterday, 07:08 PM by chipiguay. Edited 1 time in total.)
    Hi all!

    I found what endpoint I need to use:
    - <url>/Items

    with both GET and POST requests.

    I hit however another wall: I can fetch the data but I cannot update the details.
    The POST request I'm using is as follows:
    Headers:
    - Authorization: MediaBrowser Token="{TOKEN}"
    - Accept: application/json; charset=utf-8
    - Content-Type: application/json
    - Accept-Encoding: text/plain
    - Accept: '*'
    Url:
    - https://<my-server>/items/<itemId>
    Data:
    - {"CustomRating": "13"}

    Response is:
    {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"$":["\u0027C\u0027 is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."],"request":["The request field is required."]},"traceId":"00-c4537c18c628d487cd49a2429ad69e1e-a5d9afd2eff4f505-00"}

    I get the data payload I'm sending is not what the server expects, but the docs (https://api.jellyfin.org/#tag/ItemUpdate...UpdateItem) I'm checking don't provide any further details on this regard.

    In case anyone is curious, so far my code is here: https://codeberg.org/elfio/common-sense-media-jellyfin/

    Feedback is welcome! :pray:
    « 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