Actions19
- Agent Actions
- Campaign Actions
- Contact Actions
- Custom Field Actions
- Label Actions
- WhatsApp Actions
Overview
This node integrates with the Wasapi API to manage labels within the Wasapi system. Specifically, the Label - Update operation allows users to modify an existing label's properties such as its title, description, and color. This is useful in scenarios where labels are used to categorize or tag entities (e.g., messages, contacts) and need to be updated to reflect changes in categorization or appearance.
Practical examples include:
- Renaming a label to better represent its purpose.
- Changing the color of a label to improve visual distinction.
- Adding or updating a description to provide more context about the label's use.
Properties
| Name | Meaning |
|---|---|
| Label ID | The unique identifier of the label you want to update. |
| Title | The new title/name for the label. |
| Description | Optional text describing the label's purpose or details. |
| Color | The color of the label in hexadecimal format (e.g., #FF0000 for red). |
Output
The node outputs JSON data representing the updated label object returned by the Wasapi API. This typically includes fields such as the label's ID, title, description, color, and possibly metadata like timestamps or user information related to the update.
If the node supports binary data output, it would generally relate to attachments or media associated with labels, but based on the provided code and properties, this operation focuses solely on JSON data updates.
Dependencies
- Requires an active connection to the Wasapi API via an API key credential configured in n8n.
- The base URL for API requests is
https://api-ws.wasapi.io/api/v1. - No additional external dependencies beyond the Wasapi API and n8n's HTTP request capabilities.
Troubleshooting
- Invalid Label ID: If the provided Label ID does not exist, the API will likely return an error indicating the label was not found. Verify the ID is correct and corresponds to an existing label.
- Missing Required Fields: Title and Color are required. Omitting these will cause validation errors.
- Invalid Color Format: The color must be a valid hex code (e.g.,
#123ABC). Providing an invalid format may result in an error. - API Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions.
- Unsupported Resource/Operation: If the node configuration specifies a resource or operation not supported by the implementation, an error stating
"Resource "<resource>" with operation "<operation>" is not supported"will be thrown.
Links and References
- Wasapi Official API Documentation (for detailed API endpoints and payload structures)
- n8n Documentation (for general guidance on creating and using custom nodes)