Pocketm8
  1. Profile
Pocketm8
  • Auth
    • User
      • Sign In
      • Reset Password
      • Send SMS Code
      • Verify Code
      • Verify Token
      • Verify Challenge
  • Profile
    • Get Profile
      GET
    • Update Profile
      PATCH
    • Update Email
      PUT
    • Update Phone
      PUT
    • Resend Code
      POST
    • Update Avatar
      POST
    • Verify Code
      POST
  • Users
    • Get Users
      GET
  • Contacts
    • Get Contact
      GET
    • Get Contacts
      GET
  • Tasks
    • Create Task
      POST
    • Delete Task
      DELETE
    • Update Task
      PUT
    • Update Task Status
      POST
    • Get Task
      GET
    • Get Tasks
      GET
  • Relations
    • Task Edit
      GET
    • File Edit
      GET
  • Files
    • Get File
      GET
    • Get Files
      GET
    • Upload File
      POST
    • Delete File
      DELETE
    • Update File
      PATCH
  • Avatars
    • Upload Avatar file
  • Integrations
    • Matrix
      • Files
        • Link File
        • Unlink File
  1. Profile

Update Avatar

Developing
POST
/profile/avatar
This endpoint allows an authenticated user to update their profile avatar. The avatar payload must be compatible with aaavatars project.

Request

Body Params application/json

Example
{
    "data": {
        "topType": "LongHairMiaWallace",
        "accessoriesType": "Medal04",
        "hairColor": "Blonde",
        "facialHairType": "Blank",
        "clotheType": "ShirtVNeck",
        "eyeType": "StarStruck06",
        "eyebrowType": "UpDownNatural",
        "mouthType": "Default",
        "skinColor": "Tanned",
        "clotheColor": "Blue01",
        "facialHairColor": "Black",
        "background": "blank",
        "frame": "Blank"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://admin.letschat.ch/api/profile/avatar' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": {
        "topType": "LongHairMiaWallace",
        "accessoriesType": "Medal04",
        "hairColor": "Blonde",
        "facialHairType": "Blank",
        "clotheType": "ShirtVNeck",
        "eyeType": "StarStruck06",
        "eyebrowType": "UpDownNatural",
        "mouthType": "Default",
        "skinColor": "Tanned",
        "clotheColor": "Blue01",
        "facialHairColor": "Black",
        "background": "blank",
        "frame": "Blank"
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "message": "AVATAR_HAS_BEEN_UPDATED"
}
Modified at 2025-05-22 11:20:16
Previous
Resend Code
Next
Verify Code
Built with