User Update - Captain
AI-generatedOverview
This node, named 'User Update - Captain', is designed to modify user fields by sending updates to a specified API endpoint. It is useful in scenarios where user data needs to be programmatically updated based on input from previous workflow nodes or direct JSON input. For example, it can update user attributes such as last name or custom attributes by sending these modifications to an external user management API.
Use Case Examples
- Updating the last name and custom attributes of users retrieved from a previous node.
- Sending JSON-formatted user modifications directly to update user profiles in an external system.
Properties
| Name | Meaning |
|---|---|
| Modifications | A JSON-formatted string representing the user modifications to be applied. This string can include dynamic expressions referencing data from previous nodes. |
| Users | A string representing user identifiers. If left blank, the node uses users from the previous node's output. |
Output
JSON
response- The JSON response from the user update API, containing the result of the update operation.
Dependencies
- Requires environment variables CDP_URL (base URL for the API) and UNEXO_API_KEY (API authentication token).
- Makes HTTP POST requests to the /api/users/updateUsers endpoint.
Troubleshooting
- If the API request fails, the node retries up to three times with a delay between attempts.
- Common errors may include network issues, invalid JSON in the 'Modifications' property, or authentication failures due to missing or incorrect API keys.
- Ensure the environment variables CDP_URL and UNEXO_API_KEY are correctly set and accessible to the node.
- If dynamic expressions in the 'Modifications' string are malformed or reference non-existent data, the replacements may fail or produce incorrect results.