---
title: "Update avatar"
method: PATCH
path: "/users/avatar"
tags: ["🔐 Authentication"]
---

# Update avatar

`PATCH /users/avatar`

The API endpoint enables users to update their avatar or profile picture.

By accessing this endpoint and providing the necessary parameters, users can upload a new image file for their desired avatar.

## Response `200`

Update avatar

- object
  - `data` object
    - `__v` number
    - `_id` string
    - `avatar` object
      - `_id` string
      - `localPath` string
      - `url` string
    - `createdAt` string
    - `email` string
    - `emailVerificationExpiry` string
    - `emailVerificationToken` string
    - `isEmailVerified` boolean
    - `loginType` string
    - `password` string
    - `refreshToken` string
    - `role` string
    - `updatedAt` string
    - `username` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
