Avatar endpoints require a signed-in user session. See Authentication
for the initial sign-in flow.
client.updateUser({ confirmAvatar: true }) (PATCH /users/me), or poll until avatarUrl is on
the profile.
Step 1: Get Upload URL
contentType is image/jpeg, image/png, image/gif, or image/webp.
Step 2: Upload the Image
Upload the raw file bytes directly to the presigned URL. TheContent-Type on the S3 PUT must be
the type you presigned.
Step 3: Confirm
Confirming isPATCH /users/me with { "confirmAvatar": true }, which is
client.updateUser({ confirmAvatar: true }). Retry while the call returns 400 (not processed
yet) until avatarUrl is set.
username and
removeAvatar.
If you prefer not to confirm explicitly, poll Get current user
until avatarUrl appears:
Constraints
Removing an Avatar
Same Update username call, withremoveAvatar: true.