Jump to content

Update an item with API


TeamB

Recommended Posts

TeamB

Is it possible to update an item using the API

POST /emby/Items/<item_id>

and only supply the info you want updated?

i.e. in the POST request, just have the item details you want changed
{"CommunityRating":"5.0"}

It looks like you need to supply the full details, and they get overridden with blank if you don't include everything.

If it is not possible with the above API is there some other endpoint that does this?

 

Edited by TeamB
Link to comment
Share on other sites

hthgihwaymonk

you have to include the complete payload

Edited by hthgihwaymonk
  • Thanks 1
Link to comment
Share on other sites

TeamB

hmmmm grumble grumble

ok so I need to write a plugin to handle my updates cos I dont want to anciently nuke my items details cos I did not add ALL the fields that were expected.

Link to comment
Share on other sites

Some of the config endpoints now support updates via partial objects, so we will eventually get to the point where that can be done everywhere.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...