Skip to main content
Version: v1.0.0(int)

E003: Update user

PATCH /api/user

Updates the authenticated user's own profile. The only editable field is displayName; identity (email, Firebase UID) is owned by Firebase and is not editable here.

Authentication

User-scoped route. Requires Authorization: Bearer <firebase-id-token>; X-Org-Id is not required. Access: Authenticated.

Request

{ "displayName": "Jane Q. Doe" }
FieldTypeRequiredNotes
displayNamestringnoNew display name (1–255 chars).

Response — 200 OK

{
"user": {
"id": "uuid",
"firebaseUid": "string",
"email": "user@example.com",
"displayName": "Jane Q. Doe"
}
}

Errors

HTTPcodeCondition
401unauthorizedMissing, malformed, or rejected Firebase ID token.
404not_foundNo platform user row for the verified identity.
422validation_faileddisplayName is out of range.

Workflow

Calls W003 Update user.