---
title: "Upload my avatar"
method: POST
path: "/account/image"
tags: ["Admin Authentication"]
---

# Upload my avatar

`POST /account/image`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/account/image`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/account/image/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads (or replaces) the authenticated admin's avatar. Multipart fields: `image` (bmp, jpeg, jpg, png or webp), `current_password`, and an optional `file_name`.

## Request body `multipart/form-data`

- object
  - `image` string, binary, required
  - `current_password` string, required
  - `file_name` string

## Response `200`

The updated profile.

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid admin token.
- `422`: Validation failed, or the current password is wrong.

## Changes

- **2026-10-28** `3198f11be70f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/account/image/post.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
