---
title: "Editar Webhook cadastrado."
method: PUT
path: "/webhook/subscription/{context}/{entity}"
---

# Editar Webhook cadastrado.

`PUT /webhook/subscription/{context}/{entity}`

## Request

- Base URL: `https://sandbox.openfinance.celcoin.dev/common/v1`
- URL: `https://sandbox.openfinance.celcoin.dev/common/v1/webhook/subscription/{context}/{entity}`
- Auth: OAuth 2

Confira nosso tutorial -> https://developers.celcoin.com.br/docs/gerenciamento-de-webhook

## Path parameters

- `entity` string, required
- `context` string, required

## Request body

- object
  - `webhookUrl` string, required: Rota do Webhook.
  - `auth` object
    - `login` string: Login de autenticação (obrigatório quando type for "basic")
    - `pwd` string: Senha (obrigatório quando o type for "basic")
    - `type` string, required: Tipo de autenticação ("basic" ou "JWT")
    - `urlAuth` string
    - `requestType` string
    - `responsePathToken` string
    - `requestAuth` object
  - `active` boolean: Esta ativo ou nao. true
  - `subscriptionId` string, required: Identificador único do webhook cadastrado.

## Response `200`

200

- object
  - `version` string
  - `status` string

## Other responses

- `400`: 400
- `401`: 401
- `500`: 500

---

[API](https://skmtc.dev/celcoin/apis/webhook-manager.md) - [All operations](https://skmtc.dev/celcoin/apis/webhook-manager/llms.txt) - [OpenAPI document](https://skmtc.dev/celcoin/apis/webhook-manager/revisions/62ab86d8191a?raw)
