PAPI WhatsApp icon

PAPI WhatsApp

Interaja com a PAPI WhatsApp API

Utilidades → Gerenciar Labels

AI-generated

Summary

Add or remove a label to/from a WhatsApp chat identified by its JID within a specified WhatsApp instance.

Inputs

  • ID da Instância (required) — The WhatsApp instance ID to perform the label management on.
  • JID do Chat (required) — The JID (chat identifier) of the chat to which the label will be added or from which it will be removed.
  • ID da Label (required) — The identifier of the label to add or remove from the chat.
  • Ação da Label (required) — The action to perform on the label: either 'Adicionar' (add) or 'Remover' (remove).

Output shape

a single JSON object with the API response indicating the result of the label management action

The output contains the response from the API call to add or remove the label on the specified chat. Errors during execution will throw exceptions unless 'Continue On Fail' is enabled, in which case error details will be returned in the output.

Examples

Example 1: Add a label to a chat

Provide the instance ID, chat JID, label ID, and set the action to 'Adicionar'. The node returns the API response confirming the label was added.

Example 2: Remove a label from a chat

Provide the instance ID, chat JID, label ID, and set the action to 'Remover'. The node returns the API response confirming the label was removed.

Discussion