WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

🏷️ **LABELS** · Update Label

AI-generated

Summary

Update an existing WhatsApp label's name and/or color using the WhatGHL API within a specified session.

Inputs

  • Session Mode — Select how the sender session is chosen: Auto (default backend selection), by Session Name, or Select Session from API key sessions.
  • Session — Choose a specific session from available sessions when using 'Select Session' mode.
  • Session Name — Specify the WAHA session name when using 'By Session Name' mode.
  • Label ID (required) — The identifier of the label to update, required for update operation.
  • Label Name — New name for the label to update.
  • Label Color — Optional new color for the label, specified as WAHA numeric color id.

Output shape

a single response object from the WhatGHL API confirming the label update

The node sends a POST request to the /actions endpoint with the action 'update_label' and returns the API response as JSON.

Examples

Example 1: Update label with ID '1' to name 'VIP' and color '3' in Auto session mode

Set Label ID to '1', Label Name to 'VIP', Label Color to '3', Session Mode to 'Auto'

Links

Discussion