Skip to main content
Wraps the update user endpoint. Use this method to change the user’s name, untrusted metadata, and attributes.
If a user has enrolled another MFA method, this method will require MFA. See the Multi-factor authentication section for more details.

Parameters

object
The name of the user. Each field in the name object is optional.
object
The untrusted_metadata field contains an arbitrary JSON object of application-specific data. Untrusted metadata can be edited by end users directly via the SDK, and cannot be used to store critical information. See the Metadata reference for complete field behavior details.

Response

array[objects]
An array of email objects for the User.
array[objects]
An array of phone number objects linked to the User.
array[objects]
An array contains a list of all crypto wallets for a given User in the Stytch API.
string
The unique ID of the affected User.
object
The user object affected by call. See the User object for complete response field details.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.