---
title: "Add / Update profile's avatar."
method: POST
path: "/2/profile/avatar"
tags: ["Profile"]
---

# Add / Update profile's avatar.

`POST /2/profile/avatar`

Image must be a scared image with minimum size of 16 of type image/png, image/jpeg or image/gif

## Request body

- object
  - `avatar` string, required — Avatar
  - `encoding` string, required

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 087adaadUseravatar
    - `avatar` string, required — Avatar

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
