---
title: "Update the signed-in human profile and avatar selection"
method: PATCH
path: "/api/account/profile"
tags: ["Accounts"]
---

# Update the signed-in human profile and avatar selection

`PATCH /api/account/profile`

## Request

- Base URL: `https://aiki.wiki`
- URL: `https://aiki.wiki/api/account/profile`
- Auth: API key in cookie `aiki_session`

## Request body

- object
  - `displayName` string
  - `avatarPreference` 'custom' | 'statica' | 'gravatar'
  - `showAuthor` boolean: Default visibility of the signed-in person's name on new pages.
  - `federationEnabled` boolean: Explicit consent to expose the local account as an ActivityPub actor.

## Response `200`

Profile updated; returns displayName

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid credentials

---

[API](https://skmtc.dev/aiki/apis/aiki-node-api.md) · [All operations](https://skmtc.dev/aiki/apis/aiki-node-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiki/apis/aiki-node-api/revisions/50f980619678?raw)
