Update User
PUT
/auth/admin/users/{user_id}
Update user information. Requires admin or superadmin role. Non-superadmin cannot modify superadmin users. Only superadmin can change user types to/from superadmin.
Authorizations
SessionAuth
Session ID for authenticated requests
Type
API Key (header: X-Session-ID)
Parameters
Path Parameters
user_id*
User ID
Type
Requiredstring
Request Body
application/json
JSON "name": "John", "last_name": "Doe", "user_name": "johndoe", "email": "user@example.com", "phone": "+1234567890", "user_type": "customer", "is_verified": true, "two_factor": false
{
}
Responses
User updated successfully
application/json
JSON "success": true, "data": { "user": { "id": "usr_abc123", "email": "user@example.com", "name": "John", "last_name": "Doe", "user_name": "johndoe", "user_type": "customer", "picture": "https://storage.pubflow.com/users/usr_abc123/picture.jpg", "phone": "+1234567890", "is_verified": true, "two_factor": false, "created_at": "2025-12-07T10:00:00Z", "updated_at": "2025-12-07T10:00:00Z", "first_time": true, "is_business": true, "biz_name": "string", "biz_country": "string", "biz_state": "string", "biz_position": "string", "gdpr_consent": true, "gdpr_consent_at": "string", "gdpr_consent_version": "string", "ccpa_applies": true, "ccpa_opt_out": true, "ccpa_opt_out_at": "string", "privacy_region": "string", "biz_postal_code": "string" } }
{
}