# Update Current User Avatar **PATCH /auth/user/me/avatar** Updates the profile avatar of the currently authenticated user. Accepts image file upload. ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Authentication methods - Bearer auth ## Parameters ### Body: multipart/form-data (object) - **avatar** (string(binary)) Avatar image file (JPG, PNG, GIF). Maximum size 5MB. ## Responses ### 200 Avatar updated successfully #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) ### 400 Bad Request - Invalid file format or size #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 413 Payload Too Large - File size exceeds limit #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)