ive successfully used the api to update metadata like title and genre for music. is there a way to change the addedAt item? seems to be locked as i get a successful response to my request
This isn’t something I think is ever done via the api as addedAt is generally only an internally generated value, however I don’t see anything specifically preventing this, although PMS might overwrite the value as I’m not sure we respect locked values on this specific field.
Could you give me an example of the exact request you’re making and then I can check.
PUT https://{IP-description}.{identifier}.plex.direct:{port}/library/metadata/{ids}
params = {
‘addedAt’: {Unix Timestamp}
}
I also had issues getting addedAt values to stick using direct API interaction… I was ultimately successful by using a Python script with the Python-PlexAPI library to do it using editAddedAt. The library documentation suggests that Plex does respect the field lock here.
The actual API call it makes is:
PUT {url:port}/library/metadata/{ratingKey}?addedAt.value={timestamp}&addedAt.locked=1