Project

General

Profile

Actions

Sub-Task #120

open

Epic #105: Account & Preferences Management

Feature #106: Update profile information

User Story #107: As a user, I want to update my account information, so that my profile stays up-to-date.

Implement the API endpoint for profile data persistence (backend)

Sub-Task #120: Implement the API endpoint for profile data persistence (backend)

Added by Bricklou 8 months ago. Updated 22 days ago.

Status:
In Review
Priority:
Normal
Assigned To:
Target version:
Start date:
11/03/2026
Due date:
% Done:

100%

Estimated time:

Description

Technical specification of the username change endpoint. The email change has its own specification in #308.

Endpoint (PUT /api/v1/me/profile):

  • The body carries the new username. The endpoint changes the username of the account behind the session and nothing else.
  • The response is the current user (data), with managed_by_provider and the pending email change, if any.
  • 401 without a session. 403 when the account signs in through a login provider. 409 when the username is taken. 422 when it breaks the username rules. All errors are Problem Details and documented in the OpenAPI schema.
  • The change is written to the change log and announced as a profile change.

Acceptance criteria:

  • The username changes and the response returns the updated user.
  • A taken username, an invalid username, a missing session and a provider-managed account are each refused with the right status.
  • Every case is covered by a test, with a real database.
Actions

Also available in: PDF Atom