WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node updates a label in a specified session. It is useful for managing and modifying labels dynamically within workflows, such as changing label names or colors based on certain conditions or inputs. For example, you can update a label's name and color to reflect a change in status or category in a CRM or project management system.

Use Case Examples

  1. Update a label's name and color in a session to reflect a new lead status.
  2. Modify label properties dynamically based on workflow data to keep labels current and relevant.

Properties

Name Meaning
Session The session name where the label exists, used to identify the context for the label update.
Label Id The unique identifier of the label to update.
Name The new name for the label.
Color Hex The new color for the label in hexadecimal format.
Color The new color for the label as a number (alternative to hex).
Request Options Additional options for the request such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • success - Indicates if the label update was successful.
  • data
    • id - The ID of the updated label.
    • name - The updated name of the label.
    • colorHex - The updated color of the label in hex format.
    • color - The updated color of the label as a number.

Dependencies

  • Requires an API key credential or session authentication to access the label management service.

Troubleshooting

  • Ensure the session name and label ID are correct to avoid 'label not found' errors.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL errors occur, consider enabling the 'Ignore SSL Issues' option cautiously.
  • Validate color values to be in correct hex or number format to prevent update failures.

Discussion