Replace the portrait
PUT
Replaces the avatar's portrait and re-runs the build stages that depend
on it; poll GET /v1/avatars/{avatarId} for progress. A draft gets its
portrait this way (on v2, the first candidate is captured once the voice
is there too).
- Body: the image (jpg, png or webp, up to 10 MB) as the
filepart ofmultipart/form-data. WherePOST /v1/uploadsis available, JSON{"image": "<https URL or upload:<uploadId>>"}also works, with aportraitupload consumed on success. - Portrait: front-facing, head and shoulders with some margin around
the head, the face at least a third of the frame, in even light, with
the lips slightly parted. A clearly bad portrait fails the
appearancestage with aportrait_*reason. - Scope:
avatars:write.
header
X-Api-Key<token>Your secret API key (sk_atmee_...; older keys start sk_live_),
sent as X-Api-Key. Keep it on your server and never send it to a
browser.
avatarId*stringFormat
uuid- body
file*fileFormat
binaryAccepted; the affected build stages re-run.
application/json- response
avatarId*stringFormat
uuidstatus*"building"Value in
"building"curl -X PUT 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/appearance' \ -H 'Content-Type: application/json' \ -d '{ "image": "string"}'Example Response
{ "avatarId": "ac572b6e-802b-4b9e-a602-0786d4441e67", "status": "building"}
