TeamHub icon

TeamHub

Consume the TeamHub Business Management API

Profile → Update

AI-generated

Summary

Update the current user's profile information including name, email, and password by sending specified changes to the TeamHub API.

Inputs

  • Update Fields — Specify any combination of 'name', 'email', and 'newPassword' to update, and include 'currentPassword' if changing the password.
  • Options — Optional settings such as whether to ignore SSL certificate errors.

Output shape

a single JSON object representing the updated profile

The output contains the updated profile data returned by the /api/profile PATCH endpoint. The operation requires a valid authenticated session and will fail if 'currentPassword' is missing when changing the password.

Examples

Example 1: Update the current user's name and email

Provide 'name' and 'email' fields in Update Fields; 'currentPassword' is not required unless 'newPassword' is set.

Example 2: Change the user's password

Provide 'newPassword' and include 'currentPassword' to authorize the password change.

Links

Discussion