By calling this endpoint with similar data as shown in the example in the request body, you can create an avatar draft for the RPM user.
gender property is optional - if it’s provided in the request body, it will be applied. Otherwise it will be determined by the provided photo.
Assets can also be applied here if you wish to add a specific outfit to the avatar.
The metadata of the freshly created avatar draft will be returned in the response. Then you should take the avatarId value from the response to save the avatar draft.
3. Save avatar draft: Saves the avatar draft to an actual avatar.
Finally, you can either use the avatarId value to retrieve the actual 3D model of the saved avatar… or alternatively, you could just open our avatar editor with the user and you should see the avatar there.
You’re using the demo subdomain. You need permissions on the subdomain. You can create one in Studio.readyplayer.me if you haven’t yet.
the GET avatar endpoints are publicly available and currently do not require authentication.
All other Endpoints require an API Key. See Authentication.
Thank you for your reply, I have registered a subdomain, I changed it to “demo” subdomain before I sent out the code.
I has test both of demo domain and my registered domain, and the API return the key successfully and produce exactly the same result.
I think the problem is in V2 EQUIP API. I follow the guide (Custom Avatar Creator | Ready Player Me), and only the EQUIP step does not provide the expected result.
Hi,
I would like to create an avatar from a selfie.
I could generate an avatar draft from an image and get the avatarID, but using an string.empty for assetID in the request body, as well as the token from the guest user response.
I currently cannot permanently save the avatar and get a 404 error. To save the avatar draft:
string url = string url = $"https://api.readyplayer.me/v2/avatars/{avatarId}";
using UnityWebRequest request = new UnityWebRequest(url, "PUT");
request.SetRequestHeader("Authorization", $"Bearer {guestUserToken}");
Is using assetID for the outfit mandatory?
I would appreciate any help. Thanks in advance
Hi @Zenway and @sean_hxq , I am running into the same issue. For a guest user, I cannot save with PUT a draft avatarId that was generated with a selfie.
Have you been able to find a solution? I would appreciate any hint.