Admin
Update user and profile fields (admin only)
Changed onpatch/api/admin/users/{id}
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/users/{id}
- AuthHTTP bearer
Path parameters
idnumber required
Request body
Example request
{
"email": "user@example.com",
"role": "client",
"is_active": true,
"is_enrolled": true,
"email_verified": true,
"phone_verified": true,
"timezone": "America/New_York",
"water_goal_oz": 64,
"first_name": "Jane",
"last_name": "Doe",
"phone": "+1-555-000-0000",
"city": "Austin",
"state": "TX",
"country": "US",
"postal_code": "78701",
"birth_date": "1985-06-15",
"occupation": "Teacher",
"activity_level": "moderate",
"surgery_type": "gastric_sleeve",
"surgery_date": "2022-03-10",
"starting_weight": 280.5,
"goal_weight": 160,
"program_status": "active"
}Response
unknown required
Example response
{
"success": true,
"message": "User updated successfully"
}Changes
- info
added the new optional request property
- info
- info
added the new optional request property
- info