---
title: "Update user information"
method: PUT
path: "/api/auth/me"
tags: ["Auth"]
---

# Update user information

`PUT /api/auth/me`

# Errors
Returns an error if database operations fail or user validation fails.

## Request body

- UpdateUserInfoRequest — Request body for updating user information
  - `avatarUrl` string, nullable — Updated avatar URL for the user
  - `banner` string, nullable — Updated banner URL for the user
  - `description` string, nullable — Updated description for the user
  - `displayName` string, nullable — Updated display name for the user

## Response `200`

User information updated successfully

- UpdateUserInfoResponse — Response for successful user information update
  - `message` string, required — Update confirmation message
  - `user` UserInfo, required — User information for API responses and internal use
    - `authProvider` 'google' | 'email' | 'both', required — Authentication provider types supported by the system
    - `avatarUrl` string, nullable — URL to user's avatar image
    - `banner` string, nullable — URL to user's banner image
    - `createdAt` string, date-time, nullable — User account creation timestamp
    - `description` string, nullable — User's description or bio
    - `displayName` string, nullable — User's display name
    - `email` string, required — User's registered email address
    - `emailVerified` boolean, required — Whether the user's email has been verified
    - `id` string, uuid, required — User's unique identifier
    - `lastLogin` string, date-time, nullable — Timestamp of user's last login

## Other responses

- `401` — User authentication required to update profile
- `500` — Database connection failed or update service error

---

[API](https://skmtc.net/patroninc/apis/patron-api.md) · [All operations](https://skmtc.net/patroninc/apis/patron-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/patroninc/patron-api/versions/1583b1f4c97d/schema)
