Can't add asset to album via API (Python)
I'm currently trying to add assets to albums via the API using Python and I have run into this error message "message":["each value in ids must be a UUID","ids should not be empty","ids must be an array"],"error":"Bad Request","statusCode":400.
I cannot figure out how pass an asset id to the request in order to add it to an album. I'm following the API docs (addAssetsToAlbum). This is the snippet of payload that I'm using:
If I convert the ids string to uuid with the uuid python module (import uuid) and not use json.dumps() I have managed to reduce the error to only "message":["ids must be an array"] but I don't think is either correct.
The assets I'm trying to add are on a External Library.
Does anyone know how to deal with this error?
Thanks in advance
I cannot figure out how pass an asset id to the request in order to add it to an album. I'm following the API docs (addAssetsToAlbum). This is the snippet of payload that I'm using:
If I convert the ids string to uuid with the uuid python module (import uuid) and not use json.dumps() I have managed to reduce the error to only "message":["ids must be an array"] but I don't think is either correct.
The assets I'm trying to add are on a External Library.
Does anyone know how to deal with this error?
Thanks in advance