Solidarity Tech

Interact with Solidarity Tech API

Actions22

User → Create or Update

AI-generated

Overview

This node allows you to create or update user records in the Solidarity Tech system via their API. It supports two input methods for user data: entering individual fields through a form or providing raw JSON data. This flexibility makes it suitable for various automation scenarios, such as syncing user information from other systems, updating user preferences, or managing contact permissions.

Practical examples:

  • Automatically add or update users when they sign up on your website.
  • Batch update user contact permissions based on marketing preferences.
  • Import user data from a CSV file by converting rows into JSON objects and using the raw JSON input method.

Properties

Name Meaning
Data Input Method Choose how to input user data: "Individual Fields" (form fields) or "Raw JSON" (JSON object).
User Data JSON Raw JSON object containing user data (used if Data Input Method is "Raw JSON").
Phone Number User's phone number (required for upsert operations when using individual fields).
Email User's email address.
First Name User's first name.
Last Name User's last name.
Preferred Language User's preferred language.
Second Language User's second language.
Chapter ID Numeric ID representing the user's chapter affiliation.
SMS Permission Boolean indicating if the user has given permission to receive SMS messages.
Call Permission Boolean indicating if the user has given permission to receive calls.
Email Permission Boolean indicating if the user has given permission to receive emails.
Add Tags Comma-separated list of tags to add to the user.
Remove Tags Comma-separated list of tags to remove from the user.
Address Collection of address fields including line 1, line 2, city, state, zip code, country, latitude, longitude.
Custom User Properties Multiple key-value pairs for custom user properties (e.g., memberStatus, department, role).

Output

The node outputs an array of JSON objects representing the response from the Solidarity Tech API after creating or updating users. Each object contains the details of the created or updated user record as returned by the API.

If multiple items are processed, the output is a flattened array of all results.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential configured in n8n for authenticating with the Solidarity Tech API.
  • The node uses the base URL provided in the credentials to construct API requests.
  • The API expects JSON-formatted requests and responses.

Troubleshooting

  • Invalid JSON in User Data JSON: If using the raw JSON input method, ensure the JSON string is valid. An error will be thrown if parsing fails.
  • Missing Required Fields: For upsert operations using individual fields, the phone number is required. Omitting it may cause API errors.
  • Credential Issues: Failure to retrieve or authenticate with the API key credential will result in errors. Verify that the API key and base URL are correctly set.
  • API URL Format Errors: The base URL must be a valid HTTPS URL. Incorrect formats will cause validation errors.
  • Rate Limits: When processing many users, consider adding delays or batch processing to avoid hitting API rate limits.

Links and References

Discussion