PATCH /api/users/[id]
Updates the authenticated user’s profile. Can only update your own profile.Requires authentication. User can only update their own profile.
Request Body
All fields are optional:Response (200)
Errors
| Status | Code | Reason |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid field values |
| 401 | UNAUTHORIZED | Not authenticated |
| 403 | FORBIDDEN | Not your profile |