Edit Account
Use the Edit Account screen to update profile information and access account security and data controls. This screen requires an active session and is accessible from the Account screen.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Header | Displays Edit account title and back navigation |
| 2 | Email address field | Read-only account email address |
| 3 | First name field | Editable required first name |
| 4 | Last name field | Editable required last name |
| 5 | Phone number field | Editable required phone number with country code selector |
| 6 | Change Password link | Opens the Change Password screen |
| 7 | Security–2 step verification link | Opens MFA setup or management |
| 8 | Manage my private data link | Opens personal data controls |
| 9 | Save changes action | Saves profile updates |
Workflow
- Open the Account screen.
- Select Edit account.
- Update profile fields as needed.
- Select Save changes.
- Select a security or data option when needed:
- Change Password
- Security–2 step verification
- Manage my private data
Validations
| Scenario | App Behavior | SDK Output |
|---|---|---|
| Session missing or expired | Block access and require sign in | state = unauthenticated |
| Required profile field empty | Disable Save changes | validation = required |
| Phone number format invalid | Highlight phone field and disable Save changes | error = invalid_phone |
| No profile changes detected | Keep Save changes disabled | state = unchanged |
| Request in progress | Show loading state | state = loading |
| Request blocked | Display restriction message | HTTP 405 |
Actions
| Scenario | App Behavior | SDK Output |
|---|---|---|
| Profile field updated | Update local form state | profile = updated |
| Country code selected | Update phone country code | countryCode = updated |
| Save changes selected | Submit profile updates | Profile update request triggered |
| Profile update succeeds | Refresh profile details | profile = saved |
| Change Password selected | Open Change Password screen | Navigation event |
| Security–2 step verification selected | Open MFA setup or management screen | Navigation event |
| Manage my private data selected | Open personal data controls | Navigation event |
| Back selected | Return to Account screen | Navigation event |
Endpoint Resources
Edit Account
PUT
v3/account/edit
Returns editable profile fields for the authenticated user.
UI Element Types
| Level | Reference | Type | Value | Placement |
|---|---|---|---|---|
| 1 | email | Email address | — | |
| 1 | first-name | Edit | First name | — |
| 1 | last-name | Edit | Last name | — |
| 1 | phone | Phone | Mobile number | — |
| 1 | edit-password | Link | Edit password | — |
| 1 | security | Link | Security settings | — |
| 1 | spacer | Spacer | — | — |
| 1 | update | Button | Save updates | — |
Update Account Details
POST
/account/edit
Updates the authenticated doctor’s profile.
Send the required fields for first name, last name, and mobile number. The request requires an active session.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
first-name | String | Yes | Doctor's first name |
last-name | String | Yes | Doctor's last name |
phone | String | Yes | Doctor's mobile number |
Errors
| Code | Description |
|---|---|
FIELDS_VALIDATION_ERROR | One or more required fields are invalid. |