---
title: "Update Profile"
method: PATCH
path: "/api/auth/profile"
---

# Update Profile

`PATCH /api/auth/profile`

## Request

- Base URL: `https://api.openpaper.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openpaper.ai/api/auth/profile`
- Auth: API key in header `Authorization`

Update the current user's profile.

## Request body

- ProfileUpdateRequest: Request model for profile update.
  - `name` string, required

## Response `200`

Successful Response

- AuthResponse: Response model for auth routes.
  - `success` boolean, required
  - `message` string, required
  - `user` CurrentUser
    - `id` string, uuid, required
    - `email` string, email, required
    - `name` string, nullable
    - `is_admin` boolean
    - `picture` string, nullable
    - `is_email_verified` boolean
    - `is_active` boolean
    - `is_blocked` boolean
  - `newly_created` boolean
  - `needs_name` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openpaper/apis/open-paper.md) - [All operations](https://skmtc.dev/openpaper/apis/open-paper/llms.txt) - [OpenAPI document](https://skmtc.dev/openpaper/apis/open-paper/revisions/c2ad03216101?raw)
