---
title: "Alterar webhook da instância"
method: POST
path: "/endpoint.php?action=alterar_webhook"
---

# Alterar webhook da instância

`POST /endpoint.php?action=alterar_webhook`

## Request

- Base URL: `https://api.chatpro.com.br/painel/ws`
- URL: `https://api.chatpro.com.br/painel/ws/endpoint.php?action=alterar_webhook`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/chatpro/apis/gest-o-das-inst-ncias/docs/endpoint.php%3Faction=alterar_webhook/post.ts> (a function with typed inputs; its response is checked against the schema)

Endpoint utilizado para alterar o webhook de uma instância

## Request body

- object
  - `code` string, required: Código da instância
  - `new_webhook` string, required: Link do novo webhook

## Response `200`

200

- object
  - `success` boolean
  - `message` string

---

[API](https://skmtc.dev/chatpro/apis/gest-o-das-inst-ncias.md) - [All operations](https://skmtc.dev/chatpro/apis/gest-o-das-inst-ncias/llms.txt) - [OpenAPI document](https://skmtc.dev/chatpro/apis/gest-o-das-inst-ncias/revisions/43f9820565b4?raw)
