Skip to content
NTOMA
Esc
↑↓navigate↵open⌘Jpreview

Update the signed-in user profile

Every field is optional; send only what changed. An empty string clears bio, jobTitle or location. username cannot be cleared once set — omit the key to leave it alone. A body with no fields is a 400.

PATCH/api/auth/user/profile
Authorization
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
fullNamestring
min length 2 · max length 100
usernamestring
Lowercase letters, numbers, hyphens and underscores. Unique, case-insensitively. Cannot be cleared once set.
biostring
Empty string clears it.
max length 280
jobTitlestring
Empty string clears it.
max length 100
locationstring
Empty string clears it.
max length 100
showHeatmapboolean
Whether the profile shows its activity strip.
Responses
409That username is already taken
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X PATCH "http://localhost:8000/api/auth/user/profile" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "fullName": "string",
  "username": "amaowusu",
  "bio": "string",
  "jobTitle": "string",
  "location": "string",
  "showHeatmap": true
}'
Response
That username is already taken