We are experimenting with adding our own assets in the Asset Manager/Add & Manage section.
We have successfully accessed the asset list api, as well as locking and unlocking assets and unlocking assets for a user.
The only thing I am not sure about is how to limit the asset list api to only those that show up in the Add & Manage section. Currently it shows the entire list, and I believe we can only lock our own assets.
Any help would be greatly appreciated.
Hi Peter,
You are correct, you can only lock the assets you have uploaded yourself.
To list your assets you need to add ?organizationId=<your org id>
to the query, like this:
https://api.readyplayer.me/v1/assets?organizationId=639869f18027bc3282d76aaf&gender=male&gender=neutral&type=outfit&order=-updatedAt&page=1&limit=10
To further filter for items assigned to a specific application, you can add the applicationIds= part like this:
https://api.readyplayer.me/v1/assets?organizationId=639869f18027bc3282d76aaf&applicati[…]gender=neutral&type=outfit&order=-updatedAt&page=1&limit=10
I hope this helps!