---
title: "Upload a new avatar (base64) and set it on the caller's profile"
method: POST
path: "/me/avatar"
tags: ["Users"]
---

# Upload a new avatar (base64) and set it on the caller's profile

`POST /me/avatar`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/me/avatar`
- Auth: HTTP bearer

## Request body

- UploadAvatarRequest
  - `fileName` string, required
  - `contentType` string, required
  - `dataBase64` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `avatarUrl` string, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `422`: Image exceeds 5MB

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
