Example: Update a user
Updates user information with validation.
UUID of the user to update
Updated user data (name and email)
Promise resolving to the updated user
If userId format is invalid
If name or email is missing
If the request fails or validation fails
const user = await updateUser('550e8400-e29b-41d4-a716-446655440000', { name: 'Jane Smith', email: 'jane.smith@example.com'}); Copy
const user = await updateUser('550e8400-e29b-41d4-a716-446655440000', { name: 'Jane Smith', email: 'jane.smith@example.com'});
Example: Update a user
Updates user information with validation.