---
title: "Update the current user's name or picture"
method: PATCH
path: "/api/auth/profile"
tags: ["Auth Profile"]
---

# Update the current user's name or picture

`PATCH /api/auth/profile`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `x-sixb-csrf`
  - HTTP bearer

Fields the identity provider manages, listed in `managedFields`, are refused with 403.

## Request body

- object
  - `displayName` string, nullable
  - `avatarUrl` string, nullable

## Response `200`

Response for status 200

- object
  - `profile` object, required
    - `id` string, required
    - `email` string, required
    - `displayName` string
    - `avatarUrl` string
    - `status` 'active' | 'suspended', required
  - `managedFields` string[], required

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `403`: Response for status 403
- `404`: Response for status 404

## Changes

- **2026-10-20** `918d30b2ca67`: 1 info
  - endpoint added
- **2026-10-20** `cf4eafa4502e`: 1 breaking
  - api path removed without deprecation
- **2026-10-20** `3e09dce87095`: 1 info
  - endpoint added
- **2026-10-20** `1c47601b37c0`: 1 breaking
  - api path removed without deprecation
- **2026-10-20** `ebeab1520daa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sixb-ai/apis/sixb-api/changes/api/auth/profile/patch.md)

---

[API](https://skmtc.dev/sixb-ai/apis/sixb-api.md) - [All operations](https://skmtc.dev/sixb-ai/apis/sixb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sixb-ai/apis/sixb-api/revisions/a227d682eaa2?raw)
