Actions115
- Course Actions
- Bundle Actions
- Course Grade Actions
- Course Grade Detail Actions
- Course Teacher Actions
- Email Actions
- Email Campaign Actions
- Email Campaign Course Actions
- Email Campaign Excluded Course Actions
- Email Campaign Excluded List Actions
- Enroll Actions
- Email Campaign Excluded Plan Actions
- Email Campaign List Actions
- Email Campaign Plan Actions
- Email List Actions
- MindzPay Account Actions
- MindzPay Invoice Actions
- MindzPay Payment Actions
- MindzPay Subscription Actions
- Subscription Actions
- Team Actions
- User Actions
Overview
The "User Update" operation in this node allows updating various details of a user within the Mindz platform via its API. This operation is useful for scenarios where user information needs to be modified or corrected, such as updating contact details, changing suspension status, or modifying personal data.
Practical examples include:
- Updating a user's email address after they change it.
- Suspending or reactivating a user account.
- Modifying address or phone number information.
- Changing personal identifiers like CPF/CNPJ or corporate name for business users.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user to update (required). |
| The user's email address. | |
| First Name | The user's first name. |
| Last Name | The user's last name. |
| Username | The username associated with the user. |
| Suspended | Whether the user is suspended: options are "Keep Current Value", "Yes, Suspended", or "No, Not Suspended". |
| Gender | The user's gender: "Male" or "Female". |
| Phone | The user's phone number. |
| Birth Date | The user's birth date and time. |
| Bio | A short biography or description about the user. |
| Person Type | The type of person: "Pessoa Física" (individual) or "Pessoa Jurídica" (legal entity/company). |
| CPF/CNPJ | Brazilian individual or company tax identification number. |
| Corporate Name | The corporate name if the user represents a company. |
| Country | The country of the user. |
| Zip Code | The postal code of the user's address. |
| State | The state or province of the user's address. |
| City | The city of the user's address. |
| District | The district or neighborhood of the user's address. |
| Street | The street name of the user's address. |
| House Number | The house or building number of the user's address. |
| Complement | Additional address information (e.g., apartment number). |
Output
The output JSON contains the updated user data returned from the Mindz API after the update operation. This typically includes all user fields reflecting the new values set by the update.
If the node supports binary data output (not indicated here), it would represent any files or attachments related to the user, but this operation primarily deals with JSON user data.
Dependencies
- Requires an active connection to the Mindz API using an OAuth2-based API key credential.
- Proper configuration of the Mindz OAuth2 credentials in n8n is necessary.
- Network access to the Mindz API endpoint must be available.
Troubleshooting
- Invalid User ID: If the provided User ID does not exist, the API will likely return an error indicating the user was not found. Verify the User ID before running the node.
- Permission Errors: Insufficient permissions or invalid API credentials can cause authorization errors. Ensure the API key has rights to update user data.
- Invalid Field Values: Providing improperly formatted data (e.g., invalid email format, incorrect date format) may cause validation errors. Double-check input formats.
- Suspended Field Handling: Selecting "Keep Current Value" for the suspended field means no change; ensure this is intentional to avoid confusion.
- Network Issues: Connectivity problems can cause request failures. Check network settings and API availability.
Links and References
- Mindz API Documentation (replace with actual URL if known)
- n8n OAuth2 Credential Setup
- General REST API usage guidelines for user management systems.