Passer au contenu principal
PATCH
Modifier une étiquette WhatsApp

Endpoint

/v1/whatsapp/labels/:labelId

Paramètres

labelId
string
requis
Identifiant de l’étiquette à modifier.
accountId
string
requis
Identifiant du compte WhatsApp.
name
string
Nouveau nom. Le nom existant est conservé si ce champ est omis.
color
integer
Nouvelle couleur. La couleur existante est conservée si ce champ est omis.

Exemple

Une étiquette inexistante ou déjà supprimée retourne 404 LABEL_NOT_FOUND.

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

labelId
string
requis

Corps

application/json
accountId
string
requis
name
string
color
integer

Réponse

Étiquette mise à jour

success
boolean
label
object