WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Channels → Update Channel

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to manage WhatsApp channels. Specifically, the Update Channel operation allows users to modify existing channel details such as the channel's name, description, and profile image. This is useful for keeping channel information up-to-date, rebranding, or correcting channel metadata.

Practical scenarios include:

  • Updating a channel’s display name to reflect a new campaign or purpose.
  • Changing the channel description to provide updated information to subscribers.
  • Refreshing the channel’s profile picture by providing a new image URL.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number associated with the channel. This identifies which WhatsApp device/account the channel belongs to.
Channel ID The unique identifier of the channel to update (e.g., 123000098765421000 or 123000098765421000@newsletter).
Channel Name The new name for the channel.
Description Optional. A textual description of the channel, up to 2048 characters.
Image URL Optional. URL of an image (JPG or PNG, max 1MB) to use as the channel’s profile picture.

Output

The node outputs JSON data representing the updated channel object returned from the WaliChat API. This typically includes the updated channel properties such as its ID, name, description, image URL, and possibly status or metadata fields confirming the update.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API via an API key credential configured in n8n.
  • The node depends on the WaliChat API being accessible and the provided WhatsApp number and channel ID being valid and authorized for updates.
  • The "WhatsApp Number" property uses a dynamic options loader method (getDevices) to fetch available devices/numbers.

Troubleshooting

  • Invalid Channel ID or WhatsApp Number: If the channel or WhatsApp number does not exist or is incorrect, the API will likely return an error. Verify IDs carefully.
  • Image URL Issues: Ensure the image URL points to a JPG or PNG file and that the file size does not exceed 1MB. Invalid URLs or unsupported formats may cause failures.
  • API Authentication Errors: Make sure the API key credential is correctly set up and has sufficient permissions.
  • Description Length: Exceeding the 2048 character limit for the description may result in errors.
  • Network or API Downtime: Temporary connectivity issues with the WaliChat API can cause request failures; retry after some time.

Links and References

Discussion