I am building a kind of bridge, that pulls pictures from immich, dithers them and makes them available to an e-ink picture frame.
All of that used to work until the API was changed. Now I am trying to rewrite, to use the POST endpoint "search/metadata".
However, it seems to not work with only a single album. It seems that the array is flattened to a string at some point?
response = requests.post(url + "/api/search/metadata", headers=headers, data={"albumIds":['2b63277d-1154-4521-8b40-7a3469545be5']})
data = response.json()
data
{'message': 'Validation failed', 'errors': [{'expected': 'array', 'code': 'invalid_type', 'path': ['albumIds'], 'message': 'Invalid input: expected array, received string'}]}
.