Page cover

Update Webhook URL

Endpoint

PATCH {{}}/v1/accounts/webhooks

Description

This endpoint is used to update the webhook URL provided for the organisation.

Request Body

The request body should be a JSON object containing the following fields:

  • eventURL: "https://v1.events.c80.io",

  • callbackURL: "https://v1.callback.c80.io"

Example Request

{
    "eventURL": "https://v1.events.c80.io",
    "callbackURL": "https://v1.callback.c80.io"
}

Response

On success, the API will return a JSON object containing the response of updating the webhook.

{
    "status": true,
    "message": "Webhooks updated",
    "code": 200
}

Last updated