Update current user profile
Updates the authenticated user profile fields (name, email, phone, designation, persona, automations, notification preferences, call forwarding). Returns 409 if the new email is already in use.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Display name shown across the UI and on outbound messages signed by this user.
Primary login email; must be unique across all users — endpoint returns 409 if already taken.
Personal mobile number (E.164 preferred); rejected if it collides with a provisioned organization SMS number.
Free-form job title (e.g., "Senior Account Executive"); used for display only.
Assigned Sinch outbound number; used as the from-number on user-attributed SMS.
ObjectId of the Department the user belongs to; controls team visibility and routing.
Role granted to the user: SUPERADMIN, ADMIN, DEPARTMENT_HEAD, SALES_REP.
Per-user automation toggles and configuration (free-form map persisted as Mixed on the User document).
Whether inbound calls should be forwarded to the user personal phone when they are offline or busy.
Per-category notification toggles (aiResponses, automationTriggers, escalations, calls, etc.). See UserNotificationPreferences.
Persona fields written to the user linked Persona document; created on first set, otherwise merged. businessHours/timezone require the org-level override flag.
Response
Profile updated
Returned after PUT /api/user/profile. Returns the refreshed user plus the updated persona side-by-side.
Refreshed User document (with sensitive fields stripped).
Persona document linked to a user (may be null when unset).
{
"_id": "64eea1110000000000000040",
"user": "Alex Rep",
"position": "Senior Account Executive",
"userEmail": "alex@acme.example",
"organization": "Acme Corp",
"organizationAddress": "500 Bay St, Toronto, ON",
"leadProvider": "Facebook Lead Ads",
"organizationWebsite": "https://acme.example",
"organizationCity": "Toronto",
"region": "Ontario",
"timezone": "America/Toronto",
"businessHours": "9am-6pm Mon-Fri"
}