Skip to main content

Update every webhooks

Concept#

This endpoint is for you if you want to change all webhooks to the same URL at once.

Attention

Z-API does not accept webhooks that aren’t HTTPS


Updating Webhooks#

API#

/update-every-webhooks#

PUT https://api.z-api.io/instances/{id}/token/{token}/update-every-webhooks

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Request Body#

Required#

AtributosTipoDescrição
valuestringWebhook endpoint

Optionals#

AtributosTipoDescrição
notifySentByMebooleanActivate webhook for messages received and sent by me
{
"value": "https://endereco-do-seu-sistema.com.br/instancia/SUA_INSTANCIA/status",
"notifySentByMe": true
}

Endpoint's return#

200#

{
"value": boolean
}