Actions5
- Mail Actions
- Contact Actions
Contact → Update Contact
AI-generatedOverview
This node updates a contact in the Mailtrap system. It is useful for scenarios where you need to modify existing contact information such as email, additional fields, subscription status, or list memberships. For example, you can update a contact's email address, add or change custom fields like first and last name, manage the contact's subscription status, or include/exclude the contact from specific mailing lists.
Use Case Examples
- Updating a contact's email and name fields after they have changed their information.
- Marking a contact as unsubscribed to stop receiving emails.
- Adding a contact to specific mailing lists while removing them from others.
Properties
| Name | Meaning |
|---|---|
| Authentication | Type of authentication to use for the API request, either API Token or Bearer Token. |
| Account ID | The Mailtrap account ID where the contact exists. |
| Contact ID or Email | The unique identifier or email address of the contact to update. |
| The new email address of the contact. | |
| Fields (JSON) | Additional contact fields in JSON format to update, such as first name and last name. |
| List IDs to Include Contact | Comma-separated list of mailing list IDs to include the contact in. |
| List IDs to Exclude Contact | Comma-separated list of mailing list IDs to exclude the contact from. |
| Unsubscribed | Boolean flag indicating whether the contact is unsubscribed from emails. |
Output
JSON
id- The unique identifier of the updated contact.email- The updated email address of the contact.fields- The updated additional fields of the contact.listIdsIncluded- List IDs where the contact is included.listIdsExcluded- List IDs where the contact is excluded.unsubscribed- Indicates if the contact is unsubscribed.
Dependencies
- Mailtrap API with authentication via API Token or Bearer Token
Troubleshooting
- Ensure the Account ID and Contact ID or Email are correct and exist in Mailtrap to avoid 'contact not found' errors.
- Verify that the authentication token is valid and has the necessary permissions to update contacts.
- Check the JSON format of the 'Fields' input to avoid parsing errors.
- If updating list IDs, ensure the IDs are valid and properly formatted as comma-separated values.
Links
- Mailtrap API Contacts Documentation - Official documentation for managing contacts via Mailtrap API.