Update a user’s profile information.
This endpoint accepts multipart/form-data to support profile image uploads.
profile_image field to upload a new profile pictureremove_profile_image to true to remove the existing profile pictureAPI key authentication (Bearer token)
User ID (integer as string)
User's first name
User's last name
User's username
JSON string of public metadata
"{\"plan\": \"premium\"}"
JSON string of private metadata
"{\"internal_id\": \"12345\"}"
Whether the user account is disabled
Set to true to remove the profile image
Profile image file (JPEG, PNG, GIF, WEBP, or ICO)
User updated successfully
User ID (integer serialized as string)
"1234567890"
"2024-01-15T10:30:00Z"
"2024-01-20T15:45:00Z"
User's first name
"John"
User's last name
"Doe"
URL to profile picture
"https://cdn.wacht.dev/deployments/123/users/456/profile.jpg"
Whether the user account is disabled
false
Whether the user has a password set
true
Whether the user has backup codes generated
false
User's username (nullable)
"johndoe"
Schema version
v1, v2 "v2"
Second factor authentication policy
disabled, optional, required "disabled"
User availability status
"available"
Last password reset timestamp
"2024-01-15T10:30:00Z"
Deployment ID (integer serialized as string)
"1234567890"
Public metadata (custom fields)
{}Private metadata (custom fields, only accessible via backend API)
{}Primary email ID
"9876543210"
Primary email address
Primary phone ID
"1111111111"
Primary phone number with country code
"+1234567890"
Active organization membership ID
"5555555555"
Active workspace membership ID
"6666666666"
All email addresses associated with the user
All phone numbers associated with the user
All social connections associated with the user
All segments the user belongs to