Update a Webhook (Actualizar un Webhook )

PUT - https://api.verifik.co/v2/webhooks/{id}

Método para actualizar un webhook existente. Para que el servicio funcione, se requiere el parámetro _id, que se genera cuando un webhook es creado correctamente.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Body

En el cuerpo de este servicio, puedes enviar todos los campos generados al crear un webhook. Lo único a considerar es que solo deben incluirse en el cuerpo los campos que deseas modificar.

{
    "url": "https://sandbox.verifik.co/v2/webhooks/logs"
}
Name
Value

name

The new name you want this webhook to have

url

You can update the url to where you want to receive the POST calls.

description

The new description you want this webhook to have

link

Array of projectFlows that you want to link this webhook to.

unlink

Array of projectFlows that you want to unlink from this webhook.

Response

{
    "data": {
        "_id": "66de320d6a5c6ef0e02d4223",
        "client": "613375a1eab2fe08527f81e2",
        "projectFlow": [],
        "isActive": true,
        "name": "Postman sample",
        "url": "https://sandbox.verifik.co/v2/webhooks/logs",
        "notification": {
            "success": false,
            "fail": true,
            "_id": "66de320d6a5c6ef0e02d4222"
        },
        "updatedAt": "2024-09-08T23:23:57.678Z",
        "createdAt": "2024-09-08T23:23:57.678Z",
        "__v": 0
    }
}

Last updated