---
title: "Update profile"
method: PATCH
path: "/api/custom-auth/profile"
tags: ["auth"]
---

# Update profile

`PATCH /api/custom-auth/profile`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/api/custom-auth/profile`
- Auth: `bearer` (a scheme the document does not define)

Updates the current user first and last name

## Request body

- UpdateProfileDto
  - `firstName` string: User first name
  - `lastName` string: User last name

## Response `200`

Profile updated

- AuthUserDto
  - `id` string, required: User ID
  - `name` string, required: User full name
  - `email` string, required: User email address
  - `emailVerified` boolean, required: Whether email is verified
  - `firstName` string: User first name
  - `lastName` string: User last name
  - `createdAt` string, date-time, required: Account creation date
  - `updatedAt` string, date-time, required: Last update date

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/opencase/apis/opencase-backend-api.md) · [All operations](https://skmtc.dev/opencase/apis/opencase-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencase/apis/opencase-backend-api/revisions/c66ef2d8dc00?raw)
